Commit 6145734
committed
fix: inline all Parcel-generated JS files including code-split chunks
CRITICAL FIX:
Previous error: "Cannot find module 'aBo8e' at http://localhost:51990/:669:576"
ROOT CAUSE:
Parcel was creating code-split chunks (ccip.062d8422.js) as separate files.
GameBridgeServer only serves index.html, so external JS modules fail to load.
SOLUTION:
Updated transform-bigint.js to:
1. Find ALL .js files in dist/unity/ directory
2. Inline every JS file into index.html (not just index.js)
3. This includes code-split chunks like ccip.*.js
VERIFICATION:
- Now inlining 2 JS files: ccip.062d8422.js (5.8 KB) + ccip.c62e73be.js (5.7 KB)
- Module 'aBo8e' is now defined inline
- GameBridgeServer can serve single self-contained HTML file
This should resolve the module loading errors.1 parent f5f9ea2 commit 6145734
1 file changed
Lines changed: 10 additions & 0 deletions
0 commit comments