by matthewbauer · 11y ago · 0 comments
Emscripten has a lot of legacy code in shell.js that tries to detect the 'require' hook and assumes you're in Node if it's available. That usually isn't what you want in browserify. How did you deal with that?
It would be especially useful if we could use the same bindings for Node addons and Emscripten. I suppose a wrapper around nan.h could be made that exposes both node.h and embind.h?
About unifying both Node and Emscripten API, i assume it is possible but it would be a lot of work, too much for doing it in my spare time ;).