Open mattdesl opened 9 years ago
Yeah browserify and emscripten don't get along very well. You need to tell browserify to not parse that file. Unfortunately, I don't have a way to do that at the module level, so every project using jpg-stream (or any other emscripten project) must do that.
browserify --noParse jpg-stream/build/jpeg.js ...
Cool, thanks.
Sent from my iPhone
On Mar 3, 2015, at 2:24 PM, Devon Govett notifications@github.com wrote:
Yeah browserify and emscripten don't get along very well. You need to tell browserify to not parse that file. Unfortunately, I don't have a way to do that at the module level, so every project using jpg-stream (or any other emscripten project) must do that.
browserify --noParse jpg-stream/build/jpeg.js ... — Reply to this email directly or view it on GitHub.
The compiled output currently breaks in browserify. Offending line:
It also relies on other features like
process.stdout
etc.