Skip to content

Commit

Permalink
fix: logic
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Apr 20, 2023
1 parent 7e92f5c commit 20b005b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/webpack-cli/src/webpack-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<WebpackCLIBuiltInOption>(([name, meta]) => {
Object.entries(this.webpack.cli.getArguments()).map<WebpackCLIBuiltInOption>(
([name, meta]) => {
return {
...meta,
name,
group: "core",
helpLevel: minimumHelpFlags.includes(name) ? "minimum" : "verbose",
};
})
.concat(builtInFlags),
},
),
);

this.builtInOptionsCache = options;
Expand Down
1 change: 1 addition & 0 deletions test/build/json/logging.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
mode: "development",
infrastructureLogging: {
level: "log",
},
Expand Down

0 comments on commit 20b005b

Please sign in to comment.