We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16745ed commit b6d041eCopy full SHA for b6d041e
examples/without-a-bundler/index.html
@@ -25,12 +25,7 @@
25
// Also note that the promise, when resolved, yields the wasm module's
26
// exports which is the same as importing the `*_bg` module in other
27
// modes
28
- // await init('./pkg/without_a_bundler_bg.wasm');
29
-
30
- const url = await fetch('http://localhost:8001/pkg/without_a_bundler_bg.wasm');
31
- const body = await url.arrayBuffer();
32
- const module = await WebAssembly.compile(body);
33
- await init(module);
+ await init('./pkg/without_a_bundler_bg.wasm');
34
35
// And afterwards we can use all the functionality defined in wasm.
36
const result = add(1, 2);
0 commit comments