Commit 214250a
committed
fix: force yoga.wasm to be loaded as a file resource
it turns out that `yoga-wasm-web` does something silly with the way it loads the wasm; rather than a simple `import('./yoga.wasm')` it does some gymnastics that include a `readFile`, thus assuming the wasm is a file, not a more general module. so this change adds a webpack rule that forces just yoga.wasm to be treated as a file resource.1 parent 2d8ba9b commit 214250a
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
38 | 47 | | |
39 | 48 | | |
0 commit comments