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
Note:
I used the rollup config from the default svelte template as a starting point, this issue might also be an issue with svelte instead of rollup.
Actual Behavior
may be nearly working but some steps remain where I want to try to help figure out what they are
I created a repository with a minimal example where I tried to provide as much information as possible such that you don't necessarily need to install rust tooling in order to investigate the bug https://github.com/benmkw/svelte_rust_test . I can provide further information if needed.
short overview of the issue is the following:
rust_wasm.js:9 Uncaught TypeError: undefined is not a function
at add (rust_wasm.js:9)
at Object.create [as c] (App.svelte:8)
at init (index.mjs:1410)
at new App (App.svelte:3)
at main.js:3
at main.js:8
add @ rust_wasm.js:9
create @ App.svelte:8
init @ index.mjs:1410
App @ App.svelte:3
(anonymous) @ main.js:3
(anonymous) @ main.js:8
As far as I can see the wasm module gets embedded into the js file but _loadWasmModule is never actually called, so this might actually be very close to being in a working state.
The text was updated successfully, but these errors were encountered:
I removed svelte from the equation thus the bundle.js is now really small.
The missing piece seems to be support for import await foo from bar.
Unfortunately I have not yet figured out if import await is a thing thats standardized/ likely be supported by rollup thus not sure how to go from here.
How Do We Reproduce?
Expected Behavior
bundling wasm created using wasmpack https://rustwasm.github.io/wasm-pack/book/
Note:
I used the rollup config from the default svelte template as a starting point, this issue might also be an issue with svelte instead of rollup.
Actual Behavior
may be nearly working but some steps remain where I want to try to help figure out what they are
I created a repository with a minimal example where I tried to provide as much information as possible such that you don't necessarily need to install rust tooling in order to investigate the bug https://github.com/benmkw/svelte_rust_test . I can provide further information if needed.
short overview of the issue is the following:
because in in bundle.js:
rollup seems to optimize the call away
As far as I can see the wasm module gets embedded into the js file but _loadWasmModule is never actually called, so this might actually be very close to being in a working state.
The text was updated successfully, but these errors were encountered: