You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My though is in file <rust-lib-name>.js should uses: import * as wasm from './<rust-lib-name>_bg.wasm';
Parcel is happy with the extension .wasm and compile the project. But the browser complains:
Error: Cannot find module '8'
TypeError: second argument must be an object
I am not sure these errors are with wasm-bindgen for with parcel!
The text was updated successfully, but these errors were encountered:
limira
changed the title
Add '.wasmimport * as wasm from './<rust-lib-name>_bg.wasm
Add '.wasm' to import * as wasm from './<rust-lib-name>_bg.wasm
Apr 21, 2018
Thanks for the report! Last I checked with Parcel there's good support for importing functionality from a wasm module but it's left unimplemented if a wasm module imports functionality from the environment. I think until that's fixed Parcel will be incompatible with wasm-bindgen :(
I tried wasm-bindgen with Parcel.
My though is in file
<rust-lib-name>.js
should uses:import * as wasm from './<rust-lib-name>_bg.wasm';
Parcel is happy with the extension
.wasm
and compile the project. But the browser complains:I am not sure these errors are with wasm-bindgen for with parcel!
The text was updated successfully, but these errors were encountered: