Unverified Commit 876d4d12 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add default experimental values (#38135)

Co-authored-by: 's avatarkodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
parent fcccaafa
......@@ -1493,9 +1493,6 @@ export default async function getBaseWebpackConfig(
'process.env.__NEXT_BUILD_INDICATOR_POSITION': JSON.stringify(
config.devIndicators.buildActivityPosition
),
'process.env.__NEXT_PLUGINS': JSON.stringify(
config.experimental.plugins
),
'process.env.__NEXT_STRICT_MODE': JSON.stringify(
config.reactStrictMode
),
......@@ -1805,9 +1802,7 @@ export default async function getBaseWebpackConfig(
buildActivity: config.devIndicators.buildActivity,
buildActivityPosition: config.devIndicators.buildActivityPosition,
productionBrowserSourceMaps: !!config.productionBrowserSourceMaps,
plugins: config.experimental.plugins,
reactStrictMode: config.reactStrictMode,
reactMode: config.experimental.reactMode,
optimizeFonts: config.optimizeFonts,
optimizeCss: config.experimental.optimizeCss,
nextScriptWorkers: config.experimental.nextScriptWorkers,
......
......@@ -90,17 +90,14 @@ export interface ExperimentalConfig {
swcFileReading?: boolean
cpus?: number
sharedPool?: boolean
plugins?: boolean
profiling?: boolean
isrFlushToDisk?: boolean
reactMode?: 'legacy' | 'concurrent' | 'blocking'
workerThreads?: boolean
pageEnv?: boolean
optimizeCss?: boolean
nextScriptWorkers?: boolean
scrollRestoration?: boolean
externalDir?: boolean
conformance?: boolean
appDir?: boolean
amp?: {
optimizer?: any
......@@ -522,7 +519,6 @@ export const defaultConfig: NextConfig = {
(os.cpus() || { length: 1 }).length) - 1
),
sharedPool: true,
plugins: false,
profiling: false,
isrFlushToDisk: true,
workerThreads: false,
......@@ -548,7 +544,13 @@ export const defaultConfig: NextConfig = {
swcTraceProfiling: false,
forceSwcTransforms: false,
swcPlugins: undefined,
swcMinifyDebugOptions: undefined,
largePageDataBytes: 128 * 1000, // 128KB by default
disablePostcssPresetEnv: undefined,
amp: undefined,
urlImports: undefined,
middlewareSourceMaps: undefined,
modularizeImports: undefined,
},
}
......
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