Commit f2516f6
committed
feat(wasm-mps): add --target web build for browser-safe WASM init
Add dist/web/js/wasm Makefile target using wasm-pack --target web,
which generates a single ESM file with an explicit async init()
default export. This avoids the webpack asyncWebAssembly race where
__wbg_set_wasm may not be called before exports are used.
Update package.json to include dist/web/js/**/* in published files,
expose the ./web subpath export pointing to the generated entry
point, and add make dist/web/js/wasm to the build:wasm script.
Ticket: WCI-2501 parent 75ccf91 commit f2516f6
2 files changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
67 | 71 | | |
68 | 72 | | |
69 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | | - | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | | - | |
| 40 | + | |
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| |||
0 commit comments