mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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.
7 lines
264 B
JavaScript
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) {}
|