webpack 5: '.wasm' is missing loader
See original GitHub issueBug report
webpack 5 is missing ‘.wasm’ loader shown in this console report

What is the current behavior? webpack 4 do just fine parse the wasm but somehow webpack 5 unable to parse ‘.wasm’ because missing loader
If the current behavior is a bug, please provide the steps to reproduce.
run the yarn start and press the “click me” its will show the error in inspector. i using the webpack 5
What is the expected behavior?
https://github.com/eisenhaus335/wasm-showcase Other relevant information: webpack version: 5.0.0-beta.13 Node.js version: v12.6.1 Operating System: Ubuntu 19.10 Additional tools: yarn
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
How can I make webpack embed my *.wasm for use in a web ...
Webpack native wasm-loading doesn't seem to allow inlining the wasm file. We can try to use a regular raw-loader: // in module.rules {...
Read more >To v5 from v4 - webpack
This guide aims to help you migrating to webpack 5 when using webpack directly. If you are using a higher level tool to...
Read more >wasm-loader - npm
Webpack loader for WASM. Latest version: 1.3.0, last published: 5 years ago. Start using wasm-loader in your project by running `npm i ...
Read more >Without a Bundler - The `wasm-bindgen` Guide
This example shows how the --target web flag can be used load code in a browser directly. For this deployment strategy bundlers like...
Read more >CPP to WASM Webpack Loader - Awesome JS
Possible to ship complete WASM bundle with ASMJS fallback in a single js file with zero xhr requests. The only C/C++ webpack loader...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@sokra The fix is here: https://github.com/rustwasm/wasm-bindgen/pull/2110
Yes, i think we should improve an error message
/cc @sokra