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

Map browserDebugInfoInTerminal correctly

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