mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-20 08:16:31 +00:00
Fix the wasm2js example (#1750)
This needed and update now that we're explicitly importing `*.wasm` to import `*.js` instead. Additionally this was moved over to the `web` target to avoid needing Webpack Closes #1743
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
// Note that since we're not using `WebAssembly` we can do a synchronous import
|
||||
// here!
|
||||
import { run } from './pkg/wasm2js';
|
||||
run();
|
||||
// Import our JS shim and initialize it, executing the start function when it's
|
||||
// ready.
|
||||
import init from './pkg/wasm2js.js';
|
||||
init();
|
||||
|
Reference in New Issue
Block a user