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
I am migrating my project from a regular web to electron app because I am in need of native functionality, and I wanted to migrate to electron-vite because vite is what I was using and everything worked wonderfully until now.
However the same setup seem to fail recognize the wasm binary as wasm file format.
It works correctly in electron-vite preview and everything mounts as expected, but it seem to fail in electron-vite dev. My wasm module is written in Rust.
I am guessing it has something to do with hot reloading server and how it serves files, wonder if there is something I am missing here, in regular vite configuration (web version) hot reloading works as expected and doesn't fails.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am migrating my project from a regular web to electron app because I am in need of native functionality, and I wanted to migrate to electron-vite because vite is what I was using and everything worked wonderfully until now.
However the same setup seem to fail recognize the wasm binary as wasm file format.
It works correctly in
electron-vite preview
and everything mounts as expected, but it seem to fail inelectron-vite dev
. My wasm module is written in Rust.I am guessing it has something to do with hot reloading server and how it serves files, wonder if there is something I am missing here, in regular vite configuration (web version) hot reloading works as expected and doesn't fails.
This is my
main.ts
from the renderer folder.Thanks for any input on this.
Beta Was this translation helpful? Give feedback.
All reactions