diff --git a/packages/webpack-cli/src/webpack-cli.ts b/packages/webpack-cli/src/webpack-cli.ts index fd653d7f897..fcb5e2ab6b9 100644 --- a/packages/webpack-cli/src/webpack-cli.ts +++ b/packages/webpack-cli/src/webpack-cli.ts @@ -992,16 +992,16 @@ class WebpackCLI implements IWebpackCLI { // Extract all the flags being exported from core. // A list of cli flags generated by core can be found here https://github.com/webpack/webpack/blob/main/test/__snapshots__/Cli.basictest.js.snap const options = builtInFlags.concat( - Object.entries(this.webpack.cli.getArguments()) - .map(([name, meta]) => { + Object.entries(this.webpack.cli.getArguments()).map( + ([name, meta]) => { return { ...meta, name, group: "core", helpLevel: minimumHelpFlags.includes(name) ? "minimum" : "verbose", }; - }) - .concat(builtInFlags), + }, + ), ); this.builtInOptionsCache = options; diff --git a/test/build/json/logging.config.js b/test/build/json/logging.config.js index f25deb4239c..d53a5228db5 100644 --- a/test/build/json/logging.config.js +++ b/test/build/json/logging.config.js @@ -1,4 +1,5 @@ module.exports = { + mode: "development", infrastructureLogging: { level: "log", },