dont mutate AST

pull/1843/head
Rich Harris 6 years ago
parent daa9344cbc
commit e4c0d8d576

@ -42,7 +42,6 @@ export function removeNode(code: MagicString, parent: Node, node: Node) {
} }
code.remove(a, b); code.remove(a, b);
list.splice(i, 1);
return; return;
} }

Loading…
Cancel
Save