Skip to content

Commit a54dc05

Browse files
committed
Crawl the scope to ensure updated references
1 parent dc9748a commit a54dc05

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ module.exports = function (babel) {
165165
])
166166
);
167167
} else {
168+
path.scope.crawl();
169+
168170
// Replace the occurences of the imported name with the global name.
169171
let binding = path.scope.getBinding(local.name);
170172

0 commit comments

Comments
 (0)