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 used this plugin to import the @dimforge/rapier3d physics engine, which uses WebAssembly internally. Everything works as expected when I run npm run dev. However, npm run build produces a dist/ directory with a .wasm file but no WebAssembly.instantiate*() of any kind in the .js file(s). As a result, an error is emitted the first time the nonexistent WebAssembly instance is accessed.
I used this plugin to import the
@dimforge/rapier3d
physics engine, which uses WebAssembly internally. Everything works as expected when I runnpm run dev
. However,npm run build
produces adist/
directory with a.wasm
file but noWebAssembly.instantiate*()
of any kind in the.js
file(s). As a result, an error is emitted the first time the nonexistent WebAssembly instance is accessed.Here is a reproducible example: https://github.com/finnbear/vite-plugin-wasm-bug
Thanks for making this plugin!
The text was updated successfully, but these errors were encountered: