This commit is contained in:
cilame 2021-11-20 21:53:52 +08:00
parent fc5cfe1efa
commit 628006abc2

View File

@ -32489,11 +32489,13 @@ function MergeObj(path) {
} }
}) })
paths.map(function(refer_path) { paths.map(function(refer_path) {
let bindpath = refer_path.parentPath; try{
if (!t.isVariableDeclarator(bindpath.node)) return; let bindpath = refer_path.parentPath;
let bindname = bindpath.node.id.name; if (!t.isVariableDeclarator(bindpath.node)) return;
bindpath.scope.rename(bindname, name, bindpath.scope.block); let bindname = bindpath.node.id.name;
bindpath.remove(); bindpath.scope.rename(bindname, name, bindpath.scope.block);
bindpath.remove();
}catch(e){}
}); });
} }