DEV Community

Discussion on: Rust + Wasm + Tailwind + Svelte

Collapse
 
carlosmspk profile image
carlosmspk

Hey there! I see that your post is 1 year old, but I'm very much interested in getting Svelte and WASM to work together. Was your webpack problem the same as mine, in that the Svelte webpack version is 5.x.x which does not support WASM by default? If so, have you tried finding compatible dependency configs that work? I'm about to go down that road and just wanted to know if it's worth giving it a shot or I'm just wasting my time

Collapse
 
noandrea profile image
Andrea Giacobino

TBH I have not tried since then to make it work, I may try again sometime soon but no promises

Collapse
 
carlosmspk profile image
carlosmspk

I decided to try it in the meantime all the same. After some trial and error, managed to get it to work. Managed to pack it in Electron+Vite too! I recommend Vite over Webpack, Vite has a plugin for wasm that is relatively pain free!