Skip to content

Commit b103980

Browse files
committed
visitor(split-variable-declaration): fix binding echo094#124
Signed-off-by: echo094 <[email protected]>
1 parent 008b96a commit b103980

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/visitor/split-variable-declaration.js

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ function splitVariableDeclaration(path) {
1818
path.insertBefore(t.variableDeclaration(kind, [item]))
1919
}
2020
path.remove()
21+
path.scope.crawl()
2122
}
2223

2324
/**

0 commit comments

Comments
 (0)