Minimal example making webpack and wasm/Emscripten work together.
- Clone this gist
- Look at console
Note: Docker is required to build this project.
I filed a bug with webpack to make this integration easier.
More questions? Hit me up on Twitter.
With Webpack 5, I think you can remove the
file-loaderdependency and simplify
provided that you change the
.wasmrule in the Webpack config to:
It might help with issues locating the wasm asset when loading the page.