fix(transform-destructuring): update scope info after replacing

This commit is contained in:
Gerald
2020-03-05 22:29:31 +08:00
committed by Nicolò Ribaudo
parent 1011e58c6c
commit 8cafd8f820
4 changed files with 24 additions and 0 deletions

View File

@@ -599,6 +599,7 @@ export default declare((api, options) => {
}
path.replaceWithMultiple(nodes);
path.scope.crawl();
},
VariableDeclaration(path) {