From b103980164f56d013c2d4e03b34a25b3eee705b5 Mon Sep 17 00:00:00 2001 From: echo094 <20028238+echo094@users.noreply.github.com> Date: Fri, 20 Sep 2024 22:11:38 +0800 Subject: [PATCH] visitor(split-variable-declaration): fix binding #124 Signed-off-by: echo094 <20028238+echo094@users.noreply.github.com> --- src/visitor/split-variable-declaration.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/visitor/split-variable-declaration.js b/src/visitor/split-variable-declaration.js index 1449ec3..6dee8ae 100644 --- a/src/visitor/split-variable-declaration.js +++ b/src/visitor/split-variable-declaration.js @@ -18,6 +18,7 @@ function splitVariableDeclaration(path) { path.insertBefore(t.variableDeclaration(kind, [item])) } path.remove() + path.scope.crawl() } /**