Show byte count in children view

This commit is contained in:
Evan Hahn 2023-11-09 09:14:56 -06:00
parent c1a6d0da10
commit e0a2a3287b
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
// @ts-check
import crel, { fragment } from "./crel.js";
import pluralize from "./pluralize.js";
import formatBytes from "./formatBytes.js";
import allChildrenOf from "./allChildrenOf.js";
import * as nodePath from "./nodePath.js";
@ -187,7 +188,7 @@ const traverse = (node, path, getNodeUi) => {
crel(
"span",
{ "class": "bytecount" },
"TODO: X bytes",
pluralize(node.bytes.byteLength, "byte"),
),
),
description,