use replaceWithNodes rather than replace in es6.forOf transformer
This commit is contained in:
parent
c49871d33c
commit
67a12f03fa
@ -33,7 +33,7 @@ export function ForOfStatement(node, parent, scope, file) {
|
||||
|
||||
t.inherits(loop, node);
|
||||
|
||||
if (build.replaceParent) this.parentPath.replaceWith(build.node);
|
||||
if (build.replaceParent) this.parentPath.replaceWithNodes(build.node);
|
||||
return build.node;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user