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
Hey there, I'm pretty new to wasm, and I don't know if this is an issue with vite-plugin-wasm or something to do with my setup, but this problem has been driving me crazy. In dev mode everything works perfectly fine, here is my vite.config.js:
I am using vite and runnning @silvia-odwyer/photon in a webworker to do some image processing. I simply import with const photon = await import('@silvia-odwyer/photon'); in the webworker.
Unfortunately, when building for production the import doesn't seem to work correctly and photon is undefined when the webworker executes, I think the wasm library isn't being bundled correctly. My project can be found here and the webworker where photon is imported can be found here. Thank you for making this plugin, and I hope somebody has a solution.
The text was updated successfully, but these errors were encountered:
Hey there, I'm pretty new to wasm, and I don't know if this is an issue with vite-plugin-wasm or something to do with my setup, but this problem has been driving me crazy. In dev mode everything works perfectly fine, here is my vite.config.js:
I am using vite and runnning @silvia-odwyer/photon in a webworker to do some image processing. I simply import with
const photon = await import('@silvia-odwyer/photon');
in the webworker.Unfortunately, when building for production the import doesn't seem to work correctly and photon is undefined when the webworker executes, I think the wasm library isn't being bundled correctly. My project can be found here and the webworker where photon is imported can be found here. Thank you for making this plugin, and I hope somebody has a solution.
The text was updated successfully, but these errors were encountered: