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:
parent
52a2022da4
commit
f9001b97bb
1 changed files with 1 additions and 7 deletions
|
@ -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',
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue