Bump babel target to Node.js 12 (#27147)

Next.js 11 supports Node.js 12 and newer. This PR updates babel to reflect this.

Follow up to PR #25761
This commit is contained in:
Steven 2021-07-13 16:40:59 -04:00 committed by GitHub
parent 52a2022da4
commit f9001b97bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,15 +52,9 @@ const babelServerOpts = {
{ {
modules: 'commonjs', modules: 'commonjs',
targets: { targets: {
node: '8.3', node: '12.0',
}, },
loose: true, 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',
],
}, },
], ],
], ],