diff --git a/packages/babel-plugin-transform-destructuring/src/index.ts b/packages/babel-plugin-transform-destructuring/src/index.ts index a0566fea6f68..5adeda9e870f 100644 --- a/packages/babel-plugin-transform-destructuring/src/index.ts +++ b/packages/babel-plugin-transform-destructuring/src/index.ts @@ -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(); },