Skip to content

Commit

Permalink
fix merging errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung authored and nicolo-ribaudo committed May 17, 2022
1 parent ce7d90d commit e57ff74
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/babel-plugin-transform-destructuring/src/index.ts
Expand Up @@ -128,10 +128,6 @@ export default declare((api, options: Options) => {
destructuring.init(pattern, key);

unshiftForXStatementBody(path, nodes);

const block = node.body;
// @ts-expect-error: ensureBlock ensures that node.body is a BlockStatement
block.body = nodes.concat(block.body);
scope.crawl();
},

Expand Down

0 comments on commit e57ff74

Please sign in to comment.