Commit 505af87e authored by Tobias Koppers's avatar Tobias Koppers

Map browserDebugInfoInTerminal correctly

parent 91bf0493
......@@ -393,10 +393,15 @@ function assignDefaultsAndValidate(
if (!('browserToTerminal' in loggingConfig)) {
const expConfig = result.experimental.browserDebugInfoInTerminal
// Convert object config to simple format (level or true)
// Note: 'verbose' in the old API maps to `true` in the new API
const normalizedValue =
typeof expConfig === 'object' && expConfig !== null
? (expConfig.level ?? true)
: expConfig
? expConfig.level === 'verbose'
? true
: (expConfig.level ?? true)
: expConfig === 'verbose'
? true
: expConfig
result.logging = {
...loggingConfig,
......
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