diff --git a/src/babel/traversal/path/index.js b/src/babel/traversal/path/index.js index f46fd2a801..9aab02026c 100644 --- a/src/babel/traversal/path/index.js +++ b/src/babel/traversal/path/index.js @@ -178,7 +178,6 @@ export default class TraversalPath { } else if (this.isStatementOrBlock()) { if (this.node) nodes.unshift(this.node); this.container[this.key] = t.blockStatement(nodes); - this.replaceExpressionWithStatements(nodes); } else { throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?"); }