Open
Description
When loaded, wasm_exec.js
tries to know on which platform it is run. "fs" is loaded if not already available and check if it is empty (when using webpack to provide an empty implementation) or not (when running inside node). The check is wrongly implemented as Object.keys
returns an array of key, not a count, thus making that check always true, and unable to use with webpack.
The line in question
Line 31 in c4fed25
Which can be easily fixed by adding a .length
after the Object.keys(fs)
.