Skip to content

Commit

Permalink
Skip duplicate symbols if the are strictly equal
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Jun 22, 2020
1 parent e498bee commit 377c06c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/babel-helper-module-transforms/src/index.js
Expand Up @@ -236,6 +236,7 @@ function buildNamespaceReexport(metadata, namespace, loose) {
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
EXPORTS[key] = NAMESPACE[key];
});
Expand All @@ -244,6 +245,7 @@ function buildNamespaceReexport(metadata, namespace, loose) {
Object.keys(NAMESPACE).forEach(function(key) {
if (key === "default" || key === "__esModule") return;
VERIFY_NAME_LIST;
if (key in EXPORTS && EXPORTS[key] === NAMESPACE[key]) return;
Object.defineProperty(EXPORTS, key, {
enumerable: true,
Expand Down

0 comments on commit 377c06c

Please sign in to comment.