Files
meteor/packages/modules/stubs.js
Ben Newman 11f136228e Revert dynamic meteor-node-stubs import.
Importing meteor-node-stubs in a statically analyzable way is important to
ensure all the aliases for built-in Node modules get set up properly. This
does *not* mean that all meteor-node-stubs/defs/* modules will be imported
unconditionally.

Part of #6562.
2016-03-23 19:57:10 -04:00

7 lines
264 B
JavaScript

try {
// When meteor-node-stubs is installed in the application's root
// node_modules directory, requiring it here installs aliases for stubs
// for all Node built-in modules, such as fs, util, and http.
require("meteor-node-stubs");
} catch (noStubs) {}