diff --git a/packages/next/build/babel/preset.ts b/packages/next/build/babel/preset.ts index e4a4c660cc758..8e660e7e02660 100644 --- a/packages/next/build/babel/preset.ts +++ b/packages/next/build/babel/preset.ts @@ -79,6 +79,10 @@ module.exports = ( // In production/development this option is set to `false` so that webpack can handle import/export with tree-shaking modules: 'auto', exclude: ['transform-typeof-symbol'], + include: [ + '@babel/plugin-proposal-optional-chaining', + '@babel/plugin-proposal-nullish-coalescing-operator', + ], ...options['preset-env'], }