Skip to content

Commit 20b005b

Browse files
fix: logic
1 parent 7e92f5c commit 20b005b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/webpack-cli/src/webpack-cli.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -992,16 +992,16 @@ class WebpackCLI implements IWebpackCLI {
992992
// Extract all the flags being exported from core.
993993
// 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
994994
const options = builtInFlags.concat(
995-
Object.entries(this.webpack.cli.getArguments())
996-
.map<WebpackCLIBuiltInOption>(([name, meta]) => {
995+
Object.entries(this.webpack.cli.getArguments()).map<WebpackCLIBuiltInOption>(
996+
([name, meta]) => {
997997
return {
998998
...meta,
999999
name,
10001000
group: "core",
10011001
helpLevel: minimumHelpFlags.includes(name) ? "minimum" : "verbose",
10021002
};
1003-
})
1004-
.concat(builtInFlags),
1003+
},
1004+
),
10051005
);
10061006

10071007
this.builtInOptionsCache = options;

test/build/json/logging.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
mode: "development",
23
infrastructureLogging: {
34
level: "log",
45
},

0 commit comments

Comments
 (0)