Add minimal reproduction script for bun code splitting bug

Adds `repro.ts`, a self-contained script that:
- Generates an HTML entrypoint, a main TS entrypoint, and thousands of dynamically imported chunks.
- Runs `bun build --splitting` against the generated structure.
- Parses the output `index.html` to confirm whether the injected script matches the main entrypoint or a random chunk.
- Updates `.gitignore` to safely ignore the temporary artifacts (`bun-repro-dir`).
This commit is contained in:
ruinivist
2026-05-30 17:42:36 +00:00
parent 7e0ec4b1c4
commit be361e3896
2 changed files with 60 additions and 0 deletions
+1
View File
@@ -35,3 +35,4 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
.DS_Store
PLAN.md
bun-repro-dir/