Commit 1f9f3d1
committed
fix: enable code splitting to prevent bundle truncation on GitHub Pages
The single 1.6MB bundle was being truncated to 10KB by GitHub Pages.
Enabled code splitting to break the bundle into smaller chunks:
- vendor-three.js: 640KB (Three.js and related)
- vendor.js: 337KB (other vendor libraries)
- vendor-react.js: 256KB (React and related)
- Various app chunks: <200KB each
This resolves the JavaScript syntax error caused by truncated files.
Benefits: better caching, faster load times, no truncation issues.1 parent c1daaa1 commit 1f9f3d1
1 file changed
Lines changed: 17 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
253 | 267 | | |
254 | 268 | | |
255 | 269 | | |
| |||
0 commit comments