GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: implement deprecate flag to schema by bjohansebas · Pull Request #20432 · webpack/webpack

feat: implement deprecate flag to schema #20432

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
alexander-akait merged 11 commits into webpack:main from bjohansebas:deprecated-options
Mar 6, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

feat: implement deprecate flag to schema #20432

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
11 commits
Select commit Hold shift + click to select a range
013a555
feat: implement deprecate flag to schema
bjohansebas Feb 8, 2026
10f3f00
feat: s chema linter
bjohansebas Feb 8, 2026
be664af
fixup!
bjohansebas Feb 23, 2026
20773f1
feat: generate @deprecated tag
bjohansebas Mar 1, 2026
a7aecbe
Merge branch 'main' of github.com:webpack/webpack into deprecated-opt…
bjohansebas Mar 1, 2026
37a34c4
fixup!
bjohansebas Mar 1, 2026
7972bf5
feat: add deprecated on jsdocs
bjohansebas Mar 1, 2026
f40aa71
fixup!
bjohansebas Mar 1, 2026
a2ccd54
docs
bjohansebas Mar 1, 2026
3aa565d
fix: update tooling dependency to version 1.25.0
bjohansebas Mar 6, 2026
0cfe89f
Merge branch 'main' of https://github.com/webpack/webpack into deprec…
bjohansebas Mar 6, 2026
File filter
Filter by extension


Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view

There are no files selected for viewing

5 changes: 5 additions & 0 deletions 5 .changeset/cuddly-beans-complain.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"webpack": patch
---

Implement `deprecate` flag in schema for better TypeScript support to show which options are already deprecated by the configuration
21 changes: 21 additions & 0 deletions 21 declarations/WebpackOptions.d.ts
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -1385,14 +1385,17 @@ export interface ModuleOptions {
*/
exprContextCritical?: boolean;
/**
* @deprecated
* Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'.
*/
exprContextRecursive?: boolean;
/**
* @deprecated
* Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'.
*/
exprContextRegExp?: RegExp | boolean;
/**
* @deprecated
* Set the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'.
*/
exprContextRequest?: string;
Expand All @@ -1413,26 +1416,32 @@ export interface ModuleOptions {
*/
rules?: RuleSetRules;
/**
* @deprecated
* Emit errors instead of warnings when imported names don't exist in imported module. Deprecated: This option has moved to 'module.parser.javascript.strictExportPresence'.
*/
strictExportPresence?: boolean;
/**
* @deprecated
* Handle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to 'module.parser.javascript.strictThisContextOnImports'.
*/
strictThisContextOnImports?: boolean;
/**
* @deprecated
* Enable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextCritical'.
*/
unknownContextCritical?: boolean;
/**
* @deprecated
* Enable recursive directory lookup when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRecursive'.
*/
unknownContextRecursive?: boolean;
/**
* @deprecated
* Sets the regular expression when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRegExp'.
*/
unknownContextRegExp?: RegExp | boolean;
/**
* @deprecated
* Sets the request when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRequest'.
*/
unknownContextRequest?: string;
Expand All @@ -1441,14 +1450,17 @@ export interface ModuleOptions {
*/
unsafeCache?: boolean | import("../lib/Compilation").UnsafeCachePredicate;
/**
* @deprecated
* Enable warnings for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextCritical'.
*/
wrappedContextCritical?: boolean;
/**
* @deprecated
* Enable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRecursive'.
*/
wrappedContextRecursive?: boolean;
/**
* @deprecated
* Set the inner regular expression for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRegExp'.
*/
wrappedContextRegExp?: RegExp;
Expand Down Expand Up @@ -1849,10 +1861,12 @@ export interface Optimization {
*/
minimizer?: ("..." | Falsy | WebpackPluginInstance | WebpackPluginFunction)[];
/**
* @deprecated
* Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).
*/
moduleIds?: "natural" | "named" | "hashed" | "deterministic" | "size" | false;
/**
* @deprecated
* Avoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).
*/
noEmitOnErrors?: boolean;
Expand Down Expand Up @@ -2327,6 +2341,7 @@ export interface Output {
*/
strictModuleErrorHandling?: StrictModuleErrorHandling;
/**
* @deprecated
* Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.
*/
strictModuleExceptionHandling?: StrictModuleExceptionHandling;
Expand Down Expand Up @@ -2586,6 +2601,7 @@ export interface StatsOptions {
*/
builtAt?: boolean;
/**
* @deprecated
* Add information about cached (not built) modules (deprecated: use 'cachedModules' instead).
*/
cached?: boolean;
Expand Down Expand Up @@ -2869,6 +2885,7 @@ export interface StatsOptions {
*/
relatedAssets?: boolean;
/**
* @deprecated
* Add information about runtime modules (deprecated: use 'runtimeModules' instead).
*/
runtime?: boolean;
Expand Down Expand Up @@ -3364,6 +3381,7 @@ export interface JavascriptParserOptions {
*/
requireJs?: boolean;
/**
* @deprecated
* Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.
*/
strictExportPresence?: boolean;
Expand Down Expand Up @@ -3576,10 +3594,12 @@ export interface OptimizationNormalized {
*/
minimizer?: ("..." | WebpackPluginInstance | WebpackPluginFunction)[];
/**
* @deprecated
* Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).
*/
moduleIds?: "natural" | "named" | "hashed" | "deterministic" | "size" | false;
/**
* @deprecated
* Avoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).
*/
noEmitOnErrors?: boolean;
Expand Down Expand Up @@ -3797,6 +3817,7 @@ export interface OutputNormalized {
*/
strictModuleErrorHandling?: StrictModuleErrorHandling;
/**
* @deprecated
* Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.
*/
strictModuleExceptionHandling?: StrictModuleExceptionHandling;
Expand Down
74 changes: 54 additions & 20 deletions 74 schemas/WebpackOptions.json
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2016,7 +2016,8 @@
},
"strictExportPresence": {
"description": "Deprecated in favor of \"exportsPresence\". Emit errors instead of warnings when imported names don't exist in imported module.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"strictThisContextOnImports": {
"description": "Handle the this context correctly according to the spec for namespace objects.",
Expand Down Expand Up @@ -2499,7 +2500,8 @@
},
"exprContextRecursive": {
"description": "Enable recursive directory lookup for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRecursive'.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"exprContextRegExp": {
"description": "Sets the default regular expression for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRegExp'.",
Expand All @@ -2511,11 +2513,13 @@
{
"type": "boolean"
}
]
],
"deprecated": true
},
"exprContextRequest": {
"description": "Set the default request for full dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.exprContextRequest'.",
"type": "string"
"type": "string",
"deprecated": true
},
"generator": {
"$ref": "#/definitions/GeneratorOptionsByModuleType"
Expand All @@ -2536,19 +2540,23 @@
},
"strictExportPresence": {
"description": "Emit errors instead of warnings when imported names don't exist in imported module. Deprecated: This option has moved to 'module.parser.javascript.strictExportPresence'.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"strictThisContextOnImports": {
"description": "Handle the this context correctly according to the spec for namespace objects. Deprecated: This option has moved to 'module.parser.javascript.strictThisContextOnImports'.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"unknownContextCritical": {
"description": "Enable warnings when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextCritical'.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"unknownContextRecursive": {
"description": "Enable recursive directory lookup when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRecursive'.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"unknownContextRegExp": {
"description": "Sets the regular expression when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRegExp'.",
Expand All @@ -2560,11 +2568,13 @@
{
"type": "boolean"
}
]
],
"deprecated": true
},
"unknownContextRequest": {
"description": "Sets the request when using the require function in a not statically analyse-able way. Deprecated: This option has moved to 'module.parser.javascript.unknownContextRequest'.",
"type": "string"
"type": "string",
"deprecated": true
},
"unsafeCache": {
"description": "Cache the resolving of module requests.",
Expand All @@ -2580,16 +2590,19 @@
},
"wrappedContextCritical": {
"description": "Enable warnings for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextCritical'.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"wrappedContextRecursive": {
"description": "Enable recursive directory lookup for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRecursive'.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"wrappedContextRegExp": {
"description": "Set the inner regular expression for partial dynamic dependencies. Deprecated: This option has moved to 'module.parser.javascript.wrappedContextRegExp'.",
"instanceof": "RegExp",
"tsType": "RegExp"
"tsType": "RegExp",
"deprecated": true
}
}
},
Expand Down Expand Up @@ -2806,14 +2819,23 @@
},
"moduleIds": {
"description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).",
"enum": ["natural", "named", "hashed", "deterministic", "size", false]
"enum": [
"natural",
"named",
"hashed",
"deterministic",
"size",
false
],
"deprecated": true
},
"noEmitOnErrors": {
"description": "Avoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).",
"type": "boolean",
"cli": {
"exclude": true
}
},
"deprecated": true
},
"nodeEnv": {
"description": "Set process.env.NODE_ENV to a specific value.",
Expand Down Expand Up @@ -2970,14 +2992,23 @@
},
"moduleIds": {
"description": "Define the algorithm to choose module ids (natural: numeric ids in order of usage, named: readable ids for better debugging, hashed: (deprecated) short hashes as ids for better long term caching, deterministic: numeric hash ids for better long term caching, size: numeric ids focused on minimal initial download size, false: no algorithm used, as custom one can be provided via plugin).",
"enum": ["natural", "named", "hashed", "deterministic", "size", false]
"enum": [
"natural",
"named",
"hashed",
"deterministic",
"size",
false
],
"deprecated": true
},
"noEmitOnErrors": {
"description": "Avoid emitting assets when errors occur (deprecated: use 'emitOnErrors' instead).",
"type": "boolean",
"cli": {
"exclude": true
}
},
"deprecated": true
},
"nodeEnv": {
"description": "Set process.env.NODE_ENV to a specific value.",
Expand Down Expand Up @@ -5266,7 +5297,8 @@
},
"cached": {
"description": "Add information about cached (not built) modules (deprecated: use 'cachedModules' instead).",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"cachedAssets": {
"description": "Show cached assets (setting this to `false` only shows emitted files).",
Expand Down Expand Up @@ -5655,7 +5687,8 @@
},
"runtime": {
"description": "Add information about runtime modules (deprecated: use 'runtimeModules' instead).",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"runtimeModules": {
"description": "Add information about runtime modules.",
Expand Down Expand Up @@ -5728,7 +5761,8 @@
},
"StrictModuleExceptionHandling": {
"description": "Handles exceptions in module loading correctly at a performance cost (Deprecated). This will handle module error compatible with the Node.js CommonJS way.",
"type": "boolean"
"type": "boolean",
"deprecated": true
},
"Target": {
"description": "Environment to build for. An array of environments to build for all of them when possible.",
Expand Down
Loading
Oops, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.