nikku / karma-browserify

A fast Browserify integration for Karma that handles large projects with ease
MIT License
321 stars 50 forks source link

Using karma-browserify with WASM #225

Closed jochem-brouwer closed 4 years ago

jochem-brouwer commented 4 years ago

We are having a very hard time to get karma-browserify (or possibly karma itself) to work with wasm: https://github.com/ethereumjs/ethereumjs-vm/pull/785. We have tried setting handleBinaryFiles to true, including the mime wasm type, but karma either reports that handleBinaryFiles is set to false or that wasm is an unknown file which will then default to js (which obviously fails).

There do not seem to be any issues about this. Is wasm supported? How do we get it to run with wasm? We'd rather just fetch it as a static file and import the binary directly, but this is not possible (seems we get a 400 code from Karma).

nikku commented 4 years ago

I'd kindly ask you to get wasm work with Karma standalone first, which is out of scope for this project. And I honestly have no clue / hint for you where you should start looking.

If that works it makes sense to investigate the missing bits that keep karma-browserify from handling it.

Does that make sense?

jochem-brouwer commented 4 years ago

Yup, it does, thanks!