Skip to content

Commit

Permalink
visitor(split-variable-declaration): fix binding #124
Browse files Browse the repository at this point in the history
Signed-off-by: echo094 <[email protected]>
  • Loading branch information
echo094 committed Sep 20, 2024
1 parent 008b96a commit b103980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/visitor/split-variable-declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function splitVariableDeclaration(path) {
path.insertBefore(t.variableDeclaration(kind, [item]))
}
path.remove()
path.scope.crawl()
}

/**
Expand Down

0 comments on commit b103980

Please sign in to comment.