Skip to content

Commit c727c4f

Browse files
authored
fix: correct the minimum help output (#4057)
1 parent aed6220 commit c727c4f

File tree

4 files changed

+15
-26
lines changed

4 files changed

+15
-26
lines changed

OPTIONS.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ Options:
4747
--cache-name <value> Name for the cache. Different names will lead to different coexisting caches.
4848
--cache-profile Track and log detailed timing information for individual cache items.
4949
--no-cache-profile Negative 'cache-profile' option.
50+
--cache-readonly Enable/disable readonly mode.
51+
--no-cache-readonly Negative 'cache-readonly' option.
5052
--cache-store <value> When to store data to the filesystem. (pack: Store data when compiler is idle in a single file).
5153
--cache-version <value> Version of the cache data. Different versions won't allow to reuse the cache and override existing content. Update the version when config changed in a way which doesn't allow to reuse cache. This will invalidate the cache.
5254
--context <value> The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.
@@ -98,7 +100,6 @@ Options:
98100
--no-experiments-sync-web-assembly Negative 'experiments-sync-web-assembly' option.
99101
--experiments-top-level-await Allow using top-level-await in EcmaScript Modules.
100102
--no-experiments-top-level-await Negative 'experiments-top-level-await' option.
101-
--extends <value...> Path to the configuration to be extended (only works when using webpack-cli).
102103
--extends-reset Clear all items provided in 'extends' configuration. Extend configuration from another configuration (only works when using webpack-cli).
103104
--externals <value...> Every matched dependency becomes external. An exact matched dependency becomes external. The same string is used as external dependency.
104105
--externals-reset Clear all items provided in 'externals' configuration. Specify dependencies that shouldn't be resolved by webpack, but should become dependencies of the resulting bundle. The kind of the dependency depends on `output.libraryTarget`.
@@ -168,6 +169,8 @@ Options:
168169
--no-module-parser-javascript-commonjs-magic-comments Negative 'module-parser-javascript-commonjs-magic-comments' option.
169170
--module-parser-javascript-create-require [value] Enable/disable parsing "import { createRequire } from "module"" and evaluating createRequire().
170171
--no-module-parser-javascript-create-require Negative 'module-parser-javascript-create-require' option.
172+
--module-parser-javascript-dynamic-import-fetch-priority <value> Specifies global fetchPriority for dynamic import.
173+
--no-module-parser-javascript-dynamic-import-fetch-priority Negative 'module-parser-javascript-dynamic-import-fetch-priority' option.
171174
--module-parser-javascript-dynamic-import-mode <value> Specifies global mode for dynamic import.
172175
--module-parser-javascript-dynamic-import-prefetch [value] Specifies global prefetch for dynamic import.
173176
--no-module-parser-javascript-dynamic-import-prefetch Negative 'module-parser-javascript-dynamic-import-prefetch' option.
@@ -241,6 +244,8 @@ Options:
241244
--no-module-parser-javascript-auto-commonjs-magic-comments Negative 'module-parser-javascript-auto-commonjs-magic-comments' option.
242245
--module-parser-javascript-auto-create-require [value] Enable/disable parsing "import { createRequire } from "module"" and evaluating createRequire().
243246
--no-module-parser-javascript-auto-create-require Negative 'module-parser-javascript-auto-create-require' option.
247+
--module-parser-javascript-auto-dynamic-import-fetch-priority <value> Specifies global fetchPriority for dynamic import.
248+
--no-module-parser-javascript-auto-dynamic-import-fetch-priority Negative 'module-parser-javascript-auto-dynamic-import-fetch-priority' option.
244249
--module-parser-javascript-auto-dynamic-import-mode <value> Specifies global mode for dynamic import.
245250
--module-parser-javascript-auto-dynamic-import-prefetch [value] Specifies global prefetch for dynamic import.
246251
--no-module-parser-javascript-auto-dynamic-import-prefetch Negative 'module-parser-javascript-auto-dynamic-import-prefetch' option.
@@ -314,6 +319,8 @@ Options:
314319
--no-module-parser-javascript-dynamic-commonjs-magic-comments Negative 'module-parser-javascript-dynamic-commonjs-magic-comments' option.
315320
--module-parser-javascript-dynamic-create-require [value] Enable/disable parsing "import { createRequire } from "module"" and evaluating createRequire().
316321
--no-module-parser-javascript-dynamic-create-require Negative 'module-parser-javascript-dynamic-create-require' option.
322+
--module-parser-javascript-dynamic-dynamic-import-fetch-priority <value> Specifies global fetchPriority for dynamic import.
323+
--no-module-parser-javascript-dynamic-dynamic-import-fetch-priority Negative 'module-parser-javascript-dynamic-dynamic-import-fetch-priority' option.
317324
--module-parser-javascript-dynamic-dynamic-import-mode <value> Specifies global mode for dynamic import.
318325
--module-parser-javascript-dynamic-dynamic-import-prefetch [value] Specifies global prefetch for dynamic import.
319326
--no-module-parser-javascript-dynamic-dynamic-import-prefetch Negative 'module-parser-javascript-dynamic-dynamic-import-prefetch' option.
@@ -387,6 +394,8 @@ Options:
387394
--no-module-parser-javascript-esm-commonjs-magic-comments Negative 'module-parser-javascript-esm-commonjs-magic-comments' option.
388395
--module-parser-javascript-esm-create-require [value] Enable/disable parsing "import { createRequire } from "module"" and evaluating createRequire().
389396
--no-module-parser-javascript-esm-create-require Negative 'module-parser-javascript-esm-create-require' option.
397+
--module-parser-javascript-esm-dynamic-import-fetch-priority <value> Specifies global fetchPriority for dynamic import.
398+
--no-module-parser-javascript-esm-dynamic-import-fetch-priority Negative 'module-parser-javascript-esm-dynamic-import-fetch-priority' option.
390399
--module-parser-javascript-esm-dynamic-import-mode <value> Specifies global mode for dynamic import.
391400
--module-parser-javascript-esm-dynamic-import-prefetch [value] Specifies global prefetch for dynamic import.
392401
--no-module-parser-javascript-esm-dynamic-import-prefetch Negative 'module-parser-javascript-esm-dynamic-import-prefetch' option.
@@ -626,8 +635,12 @@ Options:
626635
--no-output-environment-destructuring Negative 'output-environment-destructuring' option.
627636
--output-environment-dynamic-import The environment supports an async import() function to import EcmaScript modules.
628637
--no-output-environment-dynamic-import Negative 'output-environment-dynamic-import' option.
638+
--output-environment-dynamic-import-in-worker The environment supports an async import() is available when creating a worker.
639+
--no-output-environment-dynamic-import-in-worker Negative 'output-environment-dynamic-import-in-worker' option.
629640
--output-environment-for-of The environment supports 'for of' iteration ('for (const x of array) { ... }').
630641
--no-output-environment-for-of Negative 'output-environment-for-of' option.
642+
--output-environment-global-this The environment supports 'globalThis'.
643+
--no-output-environment-global-this Negative 'output-environment-global-this' option.
631644
--output-environment-module The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').
632645
--no-output-environment-module Negative 'output-environment-module' option.
633646
--output-environment-optional-chaining The environment supports optional chaining ('obj?.a' or 'obj?.()').

SERVE-OPTIONS-v4.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ Options:
1818
-d, --devtool <value> A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
1919
--no-devtool Negative 'devtool' option.
2020
--entry <value...> A module that is loaded upon startup. Only the last one is exported.
21-
--extends <value...> Path to the configuration to be extended (only works when using webpack-cli).
2221
--mode <value> Enable production optimizations or development hints.
2322
--name <value> Name of the configuration. Used when loading multiple configurations.
2423
-o, --output-path <value> The output directory as **absolute path** (required).

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,6 +1052,7 @@ class WebpackCLI implements IWebpackCLI {
10521052
},
10531053
];
10541054

1055+
// Options from webpack core to be included in the minimum help output
10551056
const minimumHelpFlags = [
10561057
"mode",
10571058
"watch",
@@ -1062,7 +1063,6 @@ class WebpackCLI implements IWebpackCLI {
10621063
"target",
10631064
"name",
10641065
"output-path",
1065-
"extends",
10661066
];
10671067

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy