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