Skip to content

Commit

Permalink
refactor!: minimum supported webpack version is 5.82.0
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Oct 23, 2024
1 parent 46285d6 commit e725176
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/webpack-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@types/envinfo": "^7.8.1"
},
"peerDependencies": {
"webpack": "5.x.x"
"webpack": "^5.82.0"
},
"peerDependenciesMeta": {
"webpack-bundle-analyzer": {
Expand Down
15 changes: 1 addition & 14 deletions packages/webpack-cli/src/webpack-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1043,20 +1043,6 @@ class WebpackCLI implements IWebpackCLI {
description: "Stop webpack-cli process with non-zero exit code on warnings from webpack.",
helpLevel: "minimum",
},
// TODO remove this in the next major release, because not all webpack versions have this flag in CLI options
{
name: "extends",
alias: "e",
configs: [
{
type: "string",
},
],
multiple: true,
description:
"Path to the configuration to be extended (only works when using webpack-cli).",
helpLevel: "minimum",
},
];

// Options from webpack core to be included in the minimum help output
Expand All @@ -1070,6 +1056,7 @@ class WebpackCLI implements IWebpackCLI {
"target",
"name",
"output-path",
"extends",
];

// Extract all the flags being exported from core.
Expand Down

0 comments on commit e725176

Please sign in to comment.