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.
No longer works with Webpack 5 - instead of the
nodeconfiguration, you need something like:
For the wasm files, one solution is just to use copy-webpack-plugin, which is annoying since it makes it non-transparent for people to use your module, but then again, they're already adding the magic