Skip to content

Commit

Permalink
Update packages/babel-traverse/src/scope/lib/renamer.js
Browse files Browse the repository at this point in the history
Co-authored-by: Nicol貌 Ribaudo <nicolo.ribaudo@gmail.com>
  • Loading branch information
yulanggong and nicolo-ribaudo committed May 25, 2020
1 parent cb0d424 commit 7f0f043
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/babel-traverse/src/scope/lib/renamer.js
Expand Up @@ -21,6 +21,7 @@ const renameVisitor = {
},

"AssignmentExpression|Declaration|VariableDeclarator"(path, state) {
if (path.isVariableDeclaration()) return;
const ids = path.getOuterBindingIdentifiers();

for (const name in ids) {
Expand Down

0 comments on commit 7f0f043

Please sign in to comment.