diff --git a/lib/module.js b/lib/module.js index b51772ad59dbee..a068bffa7d9056 100644 --- a/lib/module.js +++ b/lib/module.js @@ -374,7 +374,7 @@ Module.prototype.load = function(filename) { Module.prototype.require = function(path) { assert(path, 'missing path'); assert(typeof path === 'string', 'path must be a string'); - return Module._load(path, this); + return Module._load(path, this, /* isMain */ false); };