Closed tedbyron closed 2 years ago
Please provide a minimal reproducible example (zip or repo) for me to investigate this issue.
Nevermind, just figured it out. If using the --target web
option, the init
function will have the wasm memory buffer in its output. Thanks for the great vite plugins!
Using wasm-pack and a "file:path" dependency with yarn to my wasm package. I can use the
init
function from the package and I've verified that it is running the wasm binary, but when I try toimport { memory }
from the .wasm file I get this error:The file does exist, so not quite sure what's happening here.
Full error