Skip to content

Commit e4c0d8d

Browse files
committed
dont mutate AST
1 parent daa9344 commit e4c0d8d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/utils/removeNode.ts

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export function removeNode(code: MagicString, parent: Node, node: Node) {
4242
}
4343

4444
code.remove(a, b);
45-
list.splice(i, 1);
4645
return;
4746
}
4847

0 commit comments

Comments
 (0)