Open
Description
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.
Here is a reproducible example: https://github.com/finnbear/vite-plugin-wasm-bug
Thanks for making this plugin!
Metadata
Assignees
Labels
No labels
Activity