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-wasm

It 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 call init() 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

#WebAssembly #WebDev #VueJS #RustLang

  • All
  • Subscribed
  • Moderated
  • Favorites
  • rust
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines