village-builder

VB-374: A bundler in place of build.py

Status: done (2026-11-15) Priority: 3 Size: S Arch: yardstick Phase: implement Design ref: none (code structure). docs/typescript-plan.md (P2); the survey in backlog/VB-055.md. Goal: build.py inlines every file of src/manifest.json as its own <script> and splices src/page/*.js into a closure in body.html. Replace it with build.js (Node, so one language): one dev dependency, esbuild at an exact version, bundling an entry src/main.js that imports the manifest’s modules in the manifest’s order, for their effects (the VB namespace is still how they meet), into one IIFE inlined in index.html, with the page script spliced as now. index.html stays one self-contained file (PixiJS and the fonts still come from the network), --check is kept, and the build id (a hash of the page’s sources) is kept. Acceptance criteria:

Implementation notes (VB-374)