mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-19 06:35:44 +01:00
Answer stability round 1: 0 🔴, 4 🟡 (0 misread); kill the minify and boundary mutants, derive the comparison's esbuild pin, measure the companion sizes
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ import { resolve } from "node:path";
|
||||
import { drift, minifiedGzippedBytes, packedBytes } from "./figures.mjs";
|
||||
|
||||
const root = resolve(import.meta.dirname, "..");
|
||||
const measured = { minified: await minifiedGzippedBytes(root, "./dist/index.js"), ...packedBytes(root) };
|
||||
const measured = { minified: await minifiedGzippedBytes(root, ["./dist/index.js"]), ...packedBytes(root) };
|
||||
console.log(`${(measured.minified / 1000).toFixed(1)} kB minified and gzipped; ${(measured.tarball / 1000).toFixed(1)} kB tarball, ${(measured.unpacked / 1000).toFixed(1)} kB unpacked`);
|
||||
if (process.argv.includes("--check")) {
|
||||
const problems = drift(readFileSync(resolve(root, "README.md"), "utf8"), measured);
|
||||
|
||||
Reference in New Issue
Block a user