diff --git a/lib/init/module.js b/lib/init/module.js index b3a49e25..fb485ebb 100644 --- a/lib/init/module.js +++ b/lib/init/module.js @@ -35,6 +35,7 @@ module.exports = function patchModule() { catalogIfBuiltInModule(id, exports); return exports; }; + Module.prototype.require.main = requireOriginal.main; }; /**