From e57ff743f198fb7cc4a926ddc90a3115e42b79c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Thu, 5 May 2022 17:07:07 -0400 Subject: [PATCH] fix merging errors --- packages/babel-plugin-transform-destructuring/src/index.ts | 4 ---- 1 file changed, 4 deletions(-) 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(); },