Show byte count in children view
This commit is contained in:
parent
c1a6d0da10
commit
e0a2a3287b
|
@ -1,6 +1,7 @@
|
||||||
// @ts-check
|
// @ts-check
|
||||||
|
|
||||||
import crel, { fragment } from "./crel.js";
|
import crel, { fragment } from "./crel.js";
|
||||||
|
import pluralize from "./pluralize.js";
|
||||||
import formatBytes from "./formatBytes.js";
|
import formatBytes from "./formatBytes.js";
|
||||||
import allChildrenOf from "./allChildrenOf.js";
|
import allChildrenOf from "./allChildrenOf.js";
|
||||||
import * as nodePath from "./nodePath.js";
|
import * as nodePath from "./nodePath.js";
|
||||||
|
@ -187,7 +188,7 @@ const traverse = (node, path, getNodeUi) => {
|
||||||
crel(
|
crel(
|
||||||
"span",
|
"span",
|
||||||
{ "class": "bytecount" },
|
{ "class": "bytecount" },
|
||||||
"TODO: X bytes",
|
pluralize(node.bytes.byteLength, "byte"),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
description,
|
description,
|
||||||
|
|
Loading…
Reference in New Issue