This repository has been archived by the owner on Apr 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Make process
requireable
#8866
Comments
👍 |
1 similar comment
👍 |
@tjfontaine thoughts on this? |
👍 |
Same issue on io.js Pull Request closing that issue on io.js |
This is now in node 4 (nodejs/node@d8586ea) and probably won't be backported, so I'll close this for now. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Ideally (IMHO) there would be no globals besides the 4 node keywords required for the module system to function:
require
,module
,__dirname
and__filename
.For many of the other modules that are typically globals, you can require them out of the box, such as
One of the few standard parts of node that cannot be loaded via
require()
isprocess
.The popularity of this npm module: https://www.npmjs.com/package/process , with almost a million downloads in the last month shows that a lot of people would benefit from having
process
be requireable. By making it requireable, browserify can then treat it as one of the special compatibility modules and list it here: https://github.com/substack/node-browserify#compatibilityThe text was updated successfully, but these errors were encountered: