From 0d00b49a53f65debd29f532d761fc86fdb6dcb24 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 13 Jul 2021 15:30:55 -0400 Subject: [PATCH 1/2] Bump babel target to Node.js 12 --- packages/next/taskfile-babel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/taskfile-babel.js b/packages/next/taskfile-babel.js index b699f15346dd8..e4b7717ab1230 100644 --- a/packages/next/taskfile-babel.js +++ b/packages/next/taskfile-babel.js @@ -52,7 +52,7 @@ const babelServerOpts = { { modules: 'commonjs', targets: { - node: '8.3', + node: '12.0', }, loose: true, // This is handled by the Next.js webpack config that will run next/babel over the same code. From 260ef940aef8703d5b68227bdbd1a02d1b763522 Mon Sep 17 00:00:00 2001 From: Steven Date: Tue, 13 Jul 2021 15:51:47 -0400 Subject: [PATCH 2/2] Remove unnecessary exclude --- packages/next/taskfile-babel.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/packages/next/taskfile-babel.js b/packages/next/taskfile-babel.js index e4b7717ab1230..47f7dd730d631 100644 --- a/packages/next/taskfile-babel.js +++ b/packages/next/taskfile-babel.js @@ -55,12 +55,6 @@ const babelServerOpts = { node: '12.0', }, loose: true, - // This is handled by the Next.js webpack config that will run next/babel over the same code. - exclude: [ - 'transform-typeof-symbol', - 'transform-async-to-generator', - 'transform-spread', - ], }, ], ],