Repository navigation
Commit b0b6042
committed
fix(build): emit Web Workers as ES modules so the kernel worker bundles
The kernel worker imports the full DataLabRuntime, whose dynamic import() calls force code-splitting — incompatible with Vite's default iife worker format, which broke 'npm run build' (and release:pack). Workers are already instantiated with { type: module }, so worker.format='es' is the matching output format.
Assisted-by: Claude Opus 4.81 parent 713e7b9 commit b0b6042
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
0 commit comments