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(
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')
: 'next-babel-loader'
const defaultLoaders = {
......
......@@ -56,7 +56,6 @@ export type NextConfig = { [key: string]: any } & {
validator?: string
skipValidation?: boolean
}
turboMode?: boolean
eslint?: boolean
reactRoot?: boolean
enableBlurryPlaceholder?: boolean
......@@ -114,7 +113,6 @@ export const defaultConfig: NextConfig = {
scriptLoader: false,
stats: false,
externalDir: false,
turboMode: false,
eslint: false,
reactRoot: Number(process.env.NEXT_PRIVATE_REACT_ROOT) > 0,
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