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
{{ message }}
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.
I tracked down the issue to the base64 encoding/decoding as loading the wasm file using rollup-plugin-url works just fine. I believe you are suffering from this bug
The text was updated successfully, but these errors were encountered:
I think people should use WebAssembly.instantiateStreaming(fetch(...)), or use rollup-plugin-url to inline then load it, and support for WebAssembly in Rollup core is greenlit (rollup/rollup#2099), so that'll be the ideal solution. I think those are better ways, but I'm open to ideas for fixing this in the meantime.
Edit: I think this was fixed by #12 or #15, but its not published because of bug #21
Take the following program
compiled as follows:
results in the following WAT:
loaded with the plugin:
prints out:
when loaded using fetch:
correctly prints:
I tracked down the issue to the base64 encoding/decoding as loading the wasm file using
rollup-plugin-url
works just fine. I believe you are suffering from this bugThe text was updated successfully, but these errors were encountered: