Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown file extension ".wasm" #56

Open
RobinClowers opened this issue Feb 23, 2024 · 1 comment
Open

Unknown file extension ".wasm" #56

RobinClowers opened this issue Feb 23, 2024 · 1 comment

Comments

@RobinClowers
Copy link

Thanks for this package! I'm on the latest version, 3.3.0, but I'm getting the Unknown file extension ".wasm" for <package> error.

This code is running in Vitest, maybe that has something to do with it?

Versions:
vite 5.0.10
vitest 1.3.1
node 18.17.1
vite-plugin-wasm 3.3.0

I also tried:

optimizeDeps: {
  exclude: [<package>]
}

but that didn't appear to make any difference.

@RobinClowers
Copy link
Author

I've just migrated from wepack to vite (I was just using vite in test before) and I can confirm my wasm modules work just fine in development, so it does appear to be something specific to vitest or my test config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant