From e7251766430e79a0d5513806fbe2c04fcc75a868 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Wed, 23 Oct 2024 07:43:40 +0530 Subject: [PATCH] refactor!: minimum supported webpack version is `5.82.0` --- packages/webpack-cli/package.json | 2 +- packages/webpack-cli/src/webpack-cli.ts | 15 +-------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/packages/webpack-cli/package.json b/packages/webpack-cli/package.json index 69a93981447..86b25c2d5e3 100644 --- a/packages/webpack-cli/package.json +++ b/packages/webpack-cli/package.json @@ -52,7 +52,7 @@ "@types/envinfo": "^7.8.1" }, "peerDependencies": { - "webpack": "5.x.x" + "webpack": "^5.82.0" }, "peerDependenciesMeta": { "webpack-bundle-analyzer": { diff --git a/packages/webpack-cli/src/webpack-cli.ts b/packages/webpack-cli/src/webpack-cli.ts index 60a04d6d193..00c08511189 100644 --- a/packages/webpack-cli/src/webpack-cli.ts +++ b/packages/webpack-cli/src/webpack-cli.ts @@ -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 @@ -1070,6 +1056,7 @@ class WebpackCLI implements IWebpackCLI { "target", "name", "output-path", + "extends", ]; // Extract all the flags being exported from core.