Skip to content

Commit

Permalink
Retain Module.prototype.require.main [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Dec 23, 2023
1 parent b9c23bd commit 173d657
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/init/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module.exports = function patchModule() {
catalogIfBuiltInModule(id, exports);
return exports;
};
Module.prototype.require.main = requireOriginal.main;
};

/**
Expand Down

0 comments on commit 173d657

Please sign in to comment.