Skip to content

Commit

Permalink
dont mutate AST
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Nov 5, 2018
1 parent daa9344 commit e4c0d8d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/utils/removeNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export function removeNode(code: MagicString, parent: Node, node: Node) {
}

code.remove(a, b);
list.splice(i, 1);
return;
}

Expand Down

0 comments on commit e4c0d8d

Please sign in to comment.