[cjs] Skip duplicate reexported bindings in namespace reexports (#11739)
This commit is contained in:
committed by
GitHub
parent
39a12674b4
commit
a080c82777
@@ -12,6 +12,7 @@ var _mod = require("mod");
|
||||
|
||||
Object.keys(_mod).forEach(function (key) {
|
||||
if (key === "default" || key === "__esModule") return;
|
||||
if (key in exports && exports[key] === _mod[key]) return;
|
||||
Object.defineProperty(exports, key, {
|
||||
enumerable: true,
|
||||
get: function () {
|
||||
|
||||
Reference in New Issue
Block a user