Skip to content

Commit

Permalink
fix rename bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yulanggong committed May 25, 2020
1 parent daa89c0 commit 122d912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-traverse/src/scope/lib/renamer.js
Expand Up @@ -20,7 +20,7 @@ const renameVisitor = {
}
},

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

for (const name in ids) {
Expand Down

0 comments on commit 122d912

Please sign in to comment.