mirror of
https://git.mirrors.martin98.com/https://github.com/cilame/v_jstools
synced 2025-07-04 16:35:15 +08:00
add
This commit is contained in:
parent
fc5cfe1efa
commit
628006abc2
@ -32489,11 +32489,13 @@ function MergeObj(path) {
|
||||
}
|
||||
})
|
||||
paths.map(function(refer_path) {
|
||||
let bindpath = refer_path.parentPath;
|
||||
if (!t.isVariableDeclarator(bindpath.node)) return;
|
||||
let bindname = bindpath.node.id.name;
|
||||
bindpath.scope.rename(bindname, name, bindpath.scope.block);
|
||||
bindpath.remove();
|
||||
try{
|
||||
let bindpath = refer_path.parentPath;
|
||||
if (!t.isVariableDeclarator(bindpath.node)) return;
|
||||
let bindname = bindpath.node.id.name;
|
||||
bindpath.scope.rename(bindname, name, bindpath.scope.block);
|
||||
bindpath.remove();
|
||||
}catch(e){}
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user