Commit 6ebdfc7
committed
feat(runtime): implement esbuild-wasm transpiler with lazy initialization
- Load esbuild-wasm from CDN (pinned v0.20.2) — zero npm dependencies
- Implement Promise-based lazy init guard for concurrent call safety
- Expose transpile() with ESM output, esnext target, inline sourcemaps
- Disable nested worker (worker: false) for ServiceWorker compat1 parent 331c3ee commit 6ebdfc7
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
0 commit comments