michaelficarra / commonjs-everywhere

:rainbow: minimal CommonJS browser bundler with aliasing, extensibility, and source maps
BSD 3-Clause "New" or "Revised" License
158 stars 21 forks source link

process is an eventemitter; it should have "on", etc. #76

Closed michaelficarra closed 11 years ago

myrne commented 11 years ago

I made http://npmjs.org/package/process-events-shim as a stop-gap measure for browserify. Just require it and it monkey-patches the process object if it seems appropriate.

michaelficarra commented 11 years ago

Oh, that's cool. I will close this and recommend that anyone that needs process to behave as an EventEmitter use that module. I don't think it would be a common need, anyway, and it would be adding weight to every bundle.