TLDR: Uses iframes and Sveltekit pages to run wasm on server side.
fix-new-urls.jsis run duringnode run buildto bypass #5169Wasm-bindgen glue code is not instanceable so it has to be isolated with iframes if one desires to use a wasm component more than once or without explicit support by the binary(for example supplying an instance id with each call)It is instanceable when you use structs in rust and this template will be updated accordingly(soon).- "Wasm components" are implemented as Sveltekit pages due to lack of top level async support in Svelte components #5501
- Node.js
- Rust + wasm-pack
- You may or may not need visual studio build tools installed
npm install- Be sure to run
npm run devat least once to compile rust stuff
- You may get internal server errors when you run
npm run dev. Just terminate the process and run again or ignore.