Skip to content

Unable to use WASM module #2137

Answered by rygine
rygine asked this question in Q&A
Jan 24, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

this has been resolved. it was an issue with sideEffects: false being set in package.json. for wasm-pack builds using the bundler option, webpack will tree-shake necessary code when this option is set.

also, using the web option in wasm-pack is not supported due to the use of import.meta.url.

thank you to @Mrtenz for help in debugging this issue!

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@rygine
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Mrtenz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants