Commit 5ebe614
committed
fix: inline all parcel code-split chunks into single script
Parcel was generating code-split chunks (ccip.*.js) that contained critical
module definitions like 'i0WSe' (esmodule-helpers). These modules were
referenced but not defined in the main bundle, causing runtime errors.
The transform script now:
1. Extracts Parcel's inline JavaScript from the HTML
2. Reads all external .js files (code-split chunks)
3. Consolidates everything into a single <script> tag
4. Properly replaces the original script tag instead of appending
This ensures all module definitions are present in the single-file bundle
served by GameBridgeServer.1 parent 948809a commit 5ebe614
1 file changed
Lines changed: 3883 additions & 957 deletions
0 commit comments