3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 15:42:58 +01:00

Measure each package as a namespace so default exports count, add the loaded JavaScript to the WebAssembly row, drop the growth claim

This commit is contained in:
2026-11-15 13:57:35 +01:00
committed by Lillem4n
parent d3832a85b6
commit 14b5680304
5 changed files with 24 additions and 9 deletions
+4 -1
View File
@@ -111,7 +111,10 @@ const companions = {
"minified and gzipped bytes with @atlaskit/editor-json-transformer": () => minifiedGzippedBytes(process.cwd(), ["@atlaskit/editor-markdown-transformer", "@atlaskit/editor-json-transformer"]),
},
"@nthings.dev/adf4j-wasm": {
"WebAssembly module gzipped bytes": () => gzipSync(readFileSync("node_modules/@nthings.dev/adf4j-wasm/adf4j-wasm.js.wasm"), { level: 9 }).length,
"bytes of its loaded JavaScript, minified and gzipped, and of its WebAssembly module, gzipped": async () => [
await minifiedGzippedBytes(process.cwd(), ["./node_modules/@nthings.dev/adf4j-wasm/adf4j-wasm.js"]),
gzipSync(readFileSync("node_modules/@nthings.dev/adf4j-wasm/adf4j-wasm.js.wasm"), { level: 9 }).length,
].join(" and "),
},
"mdast-util-from-adf": {
"minified and gzipped bytes with mdast-util-to-markdown": () => minifiedGzippedBytes(process.cwd(), ["mdast-util-from-adf", "mdast-util-to-markdown"]),