-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
ERROR: No loader is configured for ".wasm" files #3114
Comments
If you're importing the wasm file through If it was referenced via Note that even if the wasm file is not imported directly, you still have the ability to change that to direct import through plugins API. Here's a solution for another issue but it may also be helpful to you #3039 (comment) |
This intentionally isn't something that esbuild automatically does for you. Loading WebAssembly code involves external assets, and how to do that is case-dependent. You need to configure esbuild to tell it how you want it to do that (e.g. by using a plugin) depending on your use case. I'm closing this issue because the fact that esbuild's default configuration generates the error |
When I build a cloudflare page's demo (sveltekit), throw error following:
If the wasm is inside my source file, I can build done. But, it It doesn't seem to can load from node_modules.
Do you have any ideas?
The text was updated successfully, but these errors were encountered: