mafintosh / wat2js

Compile WebAssembly .wat files to a common js module
MIT License
131 stars 24 forks source link

Webpack loader? #5

Open xtuc opened 6 years ago

xtuc commented 6 years ago

I see some issues:

If you choose to use create a Webpack loader, the wasm binary will be "managed" by Webpack and use the optimized/recommended instantiation: WebAssembly.instantiateStreaming.

Here is an example: https://github.com/xtuc/holyc/blob/master/loader.js

roccomuso commented 5 years ago

did you manage to get a working webpack loader?