Skip to content

Commit 71b440d

Browse files
snitin315alexander-akait
authored andcommitted
refactor!: minimum supported webpack version is 5.82.0 (#4303)
\
1 parent e2da745 commit 71b440d

File tree

3 files changed

+22
-35
lines changed

3 files changed

+22
-35
lines changed

packages/webpack-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@types/envinfo": "^7.8.1"
5353
},
5454
"peerDependencies": {
55-
"webpack": "5.x.x"
55+
"webpack": "^5.82.0"
5656
},
5757
"peerDependenciesMeta": {
5858
"webpack-bundle-analyzer": {

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

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ class WebpackCLI implements IWebpackCLI {
634634
makeOption(command: WebpackCLICommand, option: WebpackCLIBuiltInOption) {
635635
let mainOption: WebpackCLIMainOption;
636636
let negativeOption;
637-
const flagsWithAlias = ["devtool", "output-path", "target", "watch"];
637+
const flagsWithAlias = ["devtool", "output-path", "target", "watch", "extends"];
638638

639639
if (flagsWithAlias.includes(option.name)) {
640640
option.alias = option.name[0];
@@ -1044,20 +1044,6 @@ class WebpackCLI implements IWebpackCLI {
10441044
description: "Stop webpack-cli process with non-zero exit code on warnings from webpack.",
10451045
helpLevel: "minimum",
10461046
},
1047-
// TODO remove this in the next major release, because not all webpack versions have this flag in CLI options
1048-
{
1049-
name: "extends",
1050-
alias: "e",
1051-
configs: [
1052-
{
1053-
type: "string",
1054-
},
1055-
],
1056-
multiple: true,
1057-
description:
1058-
"Path to the configuration to be extended (only works when using webpack-cli).",
1059-
helpLevel: "minimum",
1060-
},
10611047
];
10621048

10631049
// Options from webpack core to be included in the minimum help output
@@ -1071,6 +1057,7 @@ class WebpackCLI implements IWebpackCLI {
10711057
"target",
10721058
"name",
10731059
"output-path",
1060+
"extends",
10741061
];
10751062

10761063
// Extract all the flags being exported from core.

0 commit comments

Comments
 (0)