Commit 9ce278b
Build: vite.worker.format='es' so render-worker can import shared modules
Default Vite worker format is `iife`, which forbids code splitting; the
score render worker imports renderScoreUncached from render.ts, which
gets code-split, so the build broke with:
Invalid value "iife" for option "worker.format" - UMD and IIFE
output formats are not supported for code-splitting builds.
ES module workers fix this and are supported in every browser our
runtime guard already checks for (the worker is feature-detected and
falls back to main-thread render on older targets).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a4d4f74 commit 9ce278b
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
12 | 21 | | |
0 commit comments