Unverified Commit f9001b97 authored by Steven's avatar Steven Committed by GitHub

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 
parent 52a2022d
......@@ -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',
],
},
],
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment