4 ms·
You don't even need to concatenate the files, just use the globals object + require() normally.
by ricardobeat 14y ago
You don't even need to concatenate the files, just use the globals object + require() normally.
- tfb 14y agoThe key is that I'm not actually polluting the global namespace. I also feel like using the globals object + require() would still be ugly/messy.
- ricardobeat 14y agoGlobal objects are not as much a sin as in the browser, since the environment is usually completely under your control. And of course, you wouldn't use more than a couple.