Unverified Commit d27cbf00 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Enable new babel mode (#25635)

parent 1ee97b3c
...@@ -260,7 +260,9 @@ export default async function getBaseWebpackConfig( ...@@ -260,7 +260,9 @@ export default async function getBaseWebpackConfig(
const distDir = path.join(dir, config.distDir) const distDir = path.join(dir, config.distDir)
const babelLoader = config.experimental.turboMode // Webpack 5 can use the faster babel loader, webpack 5 has built-in caching for loaders
// For webpack 4 the old loader is used as it has external caching
const babelLoader = isWebpack5
? require.resolve('./babel/loader/index') ? require.resolve('./babel/loader/index')
: 'next-babel-loader' : 'next-babel-loader'
const defaultLoaders = { const defaultLoaders = {
......
...@@ -56,7 +56,6 @@ export type NextConfig = { [key: string]: any } & { ...@@ -56,7 +56,6 @@ export type NextConfig = { [key: string]: any } & {
validator?: string validator?: string
skipValidation?: boolean skipValidation?: boolean
} }
turboMode?: boolean
eslint?: boolean eslint?: boolean
reactRoot?: boolean reactRoot?: boolean
enableBlurryPlaceholder?: boolean enableBlurryPlaceholder?: boolean
...@@ -114,7 +113,6 @@ export const defaultConfig: NextConfig = { ...@@ -114,7 +113,6 @@ export const defaultConfig: NextConfig = {
scriptLoader: false, scriptLoader: false,
stats: false, stats: false,
externalDir: false, externalDir: false,
turboMode: false,
eslint: false, eslint: false,
reactRoot: Number(process.env.NEXT_PRIVATE_REACT_ROOT) > 0, reactRoot: Number(process.env.NEXT_PRIVATE_REACT_ROOT) > 0,
enableBlurryPlaceholder: false, enableBlurryPlaceholder: false,
......
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