Skip to content

Commit

Permalink
fix(rewriter): Don't remove nodes that are already removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed Nov 30, 2017
1 parent ecf623a commit c3b8ce1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/jsx-analyzer/src/transformer/babel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export default function mkTransform(tranformOpts: { rewriter: Rewriter }): () =>
},
post(state: any) {
for (let nodePath of this.statementsToRemove) {
if (nodePath.removed) continue;
nodePath.remove();
}
if (this.dynamicStylesFound) {
Expand Down

0 comments on commit c3b8ce1

Please sign in to comment.