Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Bump babel target to Node.js 12 (vercel#27147)
Browse files Browse the repository at this point in the history
Next.js 11 supports Node.js 12 and newer. This PR updates babel to reflect this.

Follow up to PR vercel#25761
  • Loading branch information
styfle authored Jul 13, 2021
1 parent 0e59eb8 commit 1b10fb3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/next/taskfile-babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,9 @@ 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.
exclude: [
'transform-typeof-symbol',
'transform-async-to-generator',
'transform-spread',
],
},
],
],
Expand Down

0 comments on commit 1b10fb3

Please sign in to comment.