Unverified Commit 1a075b19 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

[devtool] enable segment explorer when new panel present by default (#81152)

Ensure the segment explorer is enabled when enabling the new panel UI is enabled
parent c1000be0
...@@ -1356,7 +1356,6 @@ export const defaultConfig = { ...@@ -1356,7 +1356,6 @@ export const defaultConfig = {
static: process.env.NEXT_STATIC_CACHE_HANDLER_PATH, static: process.env.NEXT_STATIC_CACHE_HANDLER_PATH,
}, },
cssChunking: true, cssChunking: true,
devtoolNewPanelUI: process.env.__NEXT_DEVTOOL_NEW_PANEL_UI === 'true',
multiZoneDraftMode: false, multiZoneDraftMode: false,
appNavFailHandling: false, appNavFailHandling: false,
prerenderEarlyExit: true, prerenderEarlyExit: true,
...@@ -1456,7 +1455,8 @@ export const defaultConfig = { ...@@ -1456,7 +1455,8 @@ export const defaultConfig = {
useCache: undefined, useCache: undefined,
slowModuleDetection: undefined, slowModuleDetection: undefined,
globalNotFound: false, globalNotFound: false,
devtoolSegmentExplorer: false, devtoolNewPanelUI: process.env.__NEXT_DEVTOOL_NEW_PANEL_UI === 'true',
devtoolSegmentExplorer: process.env.__NEXT_DEVTOOL_NEW_PANEL_UI === 'true',
}, },
htmlLimitedBots: undefined, htmlLimitedBots: undefined,
bundlePagesRouterDependencies: false, bundlePagesRouterDependencies: false,
......
...@@ -493,6 +493,10 @@ function assignDefaults( ...@@ -493,6 +493,10 @@ function assignDefaults(
} }
} }
if (result.experimental.devtoolNewPanelUI) {
result.experimental.devtoolSegmentExplorer = true
}
warnCustomizedOption( warnCustomizedOption(
result, result,
'experimental.esmExternals', 'experimental.esmExternals',
......
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