Files
workinf_Blender_Wasm/tools/web/print-task-context.mjs
mes123456 10640aeb3c
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled
Govern task context and advance execution pointer
2026-08-20 06:02:43 -04:00

8 lines
360 B
JavaScript

import { buildTaskContext, contextSizeReport } from "./task-context-lib.mjs";
const index = process.argv.indexOf("--task");
const task = index >= 0 ? process.argv[index + 1] : undefined;
const bundle = buildTaskContext(task);
const report = contextSizeReport(bundle);
process.stdout.write(`${JSON.stringify({ ...bundle.context, size: report }, null, 2)}\n`);