janriemer, Whoop! 🎉 I've just called a #Rust #WASM module from my #Vite #Vue app! :awesome:
It uses rsw with it's Vite plugin:
https://github.com/rwasm/vite-plugin-rsw
Good examples can be found here:
https://github.com/rwasm/learn-wasmIt requires a bit of config, but not too bad, given that it's bleeding edge.
What tripped me up in the very end:
You need to callinit()
first from your wasm module, otherwise error "wasm is undefined", when calling your function.https://users.rust-lang.org/t/wasm-pack-without-node-js-npm/55949
Add comment