webpack 5.106.2 → 5.107.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/README.md +2 -2
  2. package/lib/APIPlugin.js +1 -1
  3. package/lib/Cache.js +3 -6
  4. package/lib/CompatibilityPlugin.js +8 -7
  5. package/lib/Compilation.js +34 -26
  6. package/lib/Compiler.js +4 -13
  7. package/lib/ContextModule.js +2 -2
  8. package/lib/DefinePlugin.js +2 -2
  9. package/lib/Dependency.js +22 -1
  10. package/lib/DependencyTemplate.js +2 -1
  11. package/lib/EnvironmentPlugin.js +1 -1
  12. package/lib/EvalSourceMapDevToolPlugin.js +8 -9
  13. package/lib/ExternalModule.js +76 -15
  14. package/lib/ExternalModuleFactoryPlugin.js +5 -0
  15. package/lib/FileSystemInfo.js +187 -72
  16. package/lib/Generator.js +3 -3
  17. package/lib/HotModuleReplacementPlugin.js +26 -8
  18. package/lib/IgnorePlugin.js +2 -1
  19. package/lib/Module.js +19 -18
  20. package/lib/ModuleFactory.js +1 -1
  21. package/lib/ModuleSourceTypeConstants.js +31 -1
  22. package/lib/ModuleTypeConstants.js +12 -3
  23. package/lib/MultiCompiler.js +2 -2
  24. package/lib/NodeStuffPlugin.js +1 -1
  25. package/lib/NormalModule.js +13 -31
  26. package/lib/NormalModuleFactory.js +10 -2
  27. package/lib/Parser.js +1 -1
  28. package/lib/ProgressPlugin.js +129 -56
  29. package/lib/RuntimeGlobals.js +5 -5
  30. package/lib/RuntimeModule.js +9 -7
  31. package/lib/RuntimePlugin.js +11 -0
  32. package/lib/WarnCaseSensitiveModulesPlugin.js +70 -2
  33. package/lib/WarnDeprecatedOptionPlugin.js +1 -1
  34. package/lib/WarnNoModeSetPlugin.js +16 -1
  35. package/lib/Watching.js +2 -3
  36. package/lib/WebpackError.js +3 -77
  37. package/lib/WebpackIsIncludedPlugin.js +1 -1
  38. package/lib/WebpackOptionsApply.js +13 -1
  39. package/lib/asset/AssetBytesGenerator.js +6 -2
  40. package/lib/asset/AssetGenerator.js +22 -8
  41. package/lib/asset/AssetModulesPlugin.js +3 -1
  42. package/lib/asset/AssetSourceGenerator.js +6 -2
  43. package/lib/buildChunkGraph.js +4 -6
  44. package/lib/cache/PackFileCacheStrategy.js +4 -4
  45. package/lib/cli.js +3 -1
  46. package/lib/config/defaults.js +197 -10
  47. package/lib/config/normalization.js +3 -1
  48. package/lib/css/CssGenerator.js +320 -105
  49. package/lib/css/CssInjectStyleRuntimeModule.js +44 -42
  50. package/lib/css/CssLoadingRuntimeModule.js +22 -4
  51. package/lib/{CssModule.js → css/CssModule.js} +15 -15
  52. package/lib/css/CssModulesPlugin.js +166 -86
  53. package/lib/css/CssParser.js +566 -269
  54. package/lib/css/walkCssTokens.js +148 -2
  55. package/lib/dependencies/AMDRequireDependenciesBlockParserPlugin.js +1 -1
  56. package/lib/dependencies/CommonJsDependencyHelpers.js +63 -0
  57. package/lib/dependencies/CommonJsExportRequireDependency.js +54 -10
  58. package/lib/dependencies/CommonJsExportsParserPlugin.js +1 -1
  59. package/lib/dependencies/CommonJsFullRequireDependency.js +32 -9
  60. package/lib/dependencies/CommonJsImportsParserPlugin.js +4 -3
  61. package/lib/dependencies/CommonJsRequireDependency.js +67 -4
  62. package/lib/dependencies/ContextDependency.js +1 -1
  63. package/lib/dependencies/ContextDependencyHelpers.js +1 -1
  64. package/lib/dependencies/CreateRequireParserPlugin.js +1 -1
  65. package/lib/dependencies/CriticalDependencyWarning.js +1 -1
  66. package/lib/dependencies/CssIcssExportDependency.js +332 -67
  67. package/lib/dependencies/CssIcssImportDependency.js +49 -7
  68. package/lib/dependencies/CssIcssSymbolDependency.js +11 -3
  69. package/lib/dependencies/CssImportDependency.js +8 -0
  70. package/lib/dependencies/CssUrlDependency.js +25 -0
  71. package/lib/dependencies/HarmonyDetectionParserPlugin.js +1 -1
  72. package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +8 -7
  73. package/lib/dependencies/HarmonyExportExpressionDependency.js +22 -14
  74. package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +110 -3
  75. package/lib/dependencies/HarmonyImportDependency.js +10 -2
  76. package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +22 -1
  77. package/lib/dependencies/HarmonyImportSpecifierDependency.js +1 -1
  78. package/lib/{HarmonyLinkingError.js → dependencies/HarmonyLinkingError.js} +5 -3
  79. package/lib/dependencies/HtmlInlineScriptDependency.js +133 -0
  80. package/lib/dependencies/HtmlInlineStyleDependency.js +101 -0
  81. package/lib/dependencies/HtmlScriptSrcDependency.js +318 -0
  82. package/lib/dependencies/HtmlSourceDependency.js +127 -0
  83. package/lib/dependencies/ImportMetaContextDependencyParserPlugin.js +1 -1
  84. package/lib/dependencies/ImportParserPlugin.js +2 -2
  85. package/lib/dependencies/ImportPhase.js +1 -1
  86. package/lib/dependencies/RequireIncludeDependencyParserPlugin.js +1 -1
  87. package/lib/{RequireJsStuffPlugin.js → dependencies/RequireJsStuffPlugin.js} +7 -7
  88. package/lib/dependencies/SystemPlugin.js +1 -1
  89. package/lib/dependencies/WebAssemblyImportDependency.js +1 -1
  90. package/lib/dependencies/WorkerPlugin.js +2 -2
  91. package/lib/{DelegatedModule.js → dll/DelegatedModule.js} +31 -31
  92. package/lib/{DelegatedModuleFactoryPlugin.js → dll/DelegatedModuleFactoryPlugin.js} +4 -4
  93. package/lib/{DelegatedPlugin.js → dll/DelegatedPlugin.js} +2 -2
  94. package/lib/{DllEntryPlugin.js → dll/DllEntryPlugin.js} +4 -4
  95. package/lib/{DllModule.js → dll/DllModule.js} +24 -24
  96. package/lib/{DllModuleFactory.js → dll/DllModuleFactory.js} +4 -4
  97. package/lib/{DllPlugin.js → dll/DllPlugin.js} +6 -5
  98. package/lib/{DllReferencePlugin.js → dll/DllReferencePlugin.js} +14 -14
  99. package/lib/{LibManifestPlugin.js → dll/LibManifestPlugin.js} +9 -9
  100. package/lib/{AsyncDependencyToInitialChunkError.js → errors/AsyncDependencyToInitialChunkError.js} +2 -2
  101. package/lib/errors/BuildCycleError.js +1 -1
  102. package/lib/{ChunkRenderError.js → errors/ChunkRenderError.js} +1 -1
  103. package/lib/{CodeGenerationError.js → errors/CodeGenerationError.js} +1 -1
  104. package/lib/{CommentCompilationWarning.js → errors/CommentCompilationWarning.js} +3 -3
  105. package/lib/{ConcurrentCompilationError.js → errors/ConcurrentCompilationError.js} +4 -2
  106. package/lib/{EnvironmentNotSupportAsyncWarning.js → errors/EnvironmentNotSupportAsyncWarning.js} +4 -4
  107. package/lib/{HookWebpackError.js → errors/HookWebpackError.js} +5 -5
  108. package/lib/{IgnoreErrorModuleFactory.js → errors/IgnoreErrorModuleFactory.js} +4 -4
  109. package/lib/{InvalidDependenciesModuleWarning.js → errors/InvalidDependenciesModuleWarning.js} +3 -3
  110. package/lib/errors/JSONParseError.js +114 -0
  111. package/lib/{ModuleBuildError.js → errors/ModuleBuildError.js} +5 -5
  112. package/lib/{ModuleDependencyError.js → errors/ModuleDependencyError.js} +2 -2
  113. package/lib/{ModuleDependencyWarning.js → errors/ModuleDependencyWarning.js} +4 -4
  114. package/lib/{ModuleError.js → errors/ModuleError.js} +5 -5
  115. package/lib/{ModuleHashingError.js → errors/ModuleHashingError.js} +1 -1
  116. package/lib/{ModuleNotFoundError.js → errors/ModuleNotFoundError.js} +2 -2
  117. package/lib/{ModuleParseError.js → errors/ModuleParseError.js} +8 -6
  118. package/lib/{ModuleRestoreError.js → errors/ModuleRestoreError.js} +1 -1
  119. package/lib/{ModuleStoreError.js → errors/ModuleStoreError.js} +1 -1
  120. package/lib/{ModuleWarning.js → errors/ModuleWarning.js} +5 -5
  121. package/lib/{NodeStuffInWebError.js → errors/NodeStuffInWebError.js} +4 -4
  122. package/lib/errors/NonErrorEmittedError.js +28 -0
  123. package/lib/{UnhandledSchemeError.js → errors/UnhandledSchemeError.js} +2 -2
  124. package/lib/{UnsupportedFeatureWarning.js → errors/UnsupportedFeatureWarning.js} +3 -3
  125. package/lib/errors/WebpackError.js +84 -0
  126. package/lib/html/HtmlGenerator.js +379 -0
  127. package/lib/html/HtmlModulesPlugin.js +433 -0
  128. package/lib/html/HtmlParser.js +1489 -0
  129. package/lib/html/walkHtmlTokens.js +2733 -0
  130. package/lib/ids/IdHelpers.js +2 -1
  131. package/lib/index.js +34 -15
  132. package/lib/javascript/JavascriptModulesPlugin.js +89 -8
  133. package/lib/javascript/JavascriptParser.js +197 -16
  134. package/lib/javascript/JavascriptParserHelpers.js +1 -1
  135. package/lib/json/JsonParser.js +7 -16
  136. package/lib/library/AbstractLibraryPlugin.js +1 -1
  137. package/lib/library/EnableLibraryPlugin.js +1 -1
  138. package/lib/{FalseIIFEUmdWarning.js → library/FalseIIFEUmdWarning.js} +1 -1
  139. package/lib/library/ModuleLibraryPlugin.js +74 -0
  140. package/lib/node/NodeEnvironmentPlugin.js +4 -2
  141. package/lib/node/nodeConsole.js +113 -64
  142. package/lib/optimize/ConcatenatedModule.js +51 -6
  143. package/lib/optimize/InnerGraph.js +1 -1
  144. package/lib/optimize/InnerGraphPlugin.js +11 -1
  145. package/lib/optimize/MinMaxSizeWarning.js +4 -4
  146. package/lib/optimize/ModuleConcatenationPlugin.js +15 -7
  147. package/lib/optimize/RealContentHashPlugin.js +89 -26
  148. package/lib/optimize/SideEffectsFlagPlugin.js +111 -3
  149. package/lib/optimize/SplitChunksPlugin.js +1 -1
  150. package/lib/performance/AssetsOverSizeLimitWarning.js +2 -2
  151. package/lib/performance/EntrypointsOverSizeLimitWarning.js +2 -2
  152. package/lib/performance/NoAsyncChunksWarning.js +5 -3
  153. package/lib/performance/SizeLimitsPlugin.js +1 -1
  154. package/lib/prefetch/ChunkPrefetchTriggerRuntimeModule.js +4 -1
  155. package/lib/rules/UseEffectRulePlugin.js +4 -3
  156. package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +119 -13
  157. package/lib/runtime/SetAnonymousDefaultNameRuntimeModule.js +35 -0
  158. package/lib/schemes/DataUriPlugin.js +13 -1
  159. package/lib/schemes/VirtualUrlPlugin.js +1 -1
  160. package/lib/serialization/SerializerMiddleware.js +2 -2
  161. package/lib/sharing/ConsumeSharedPlugin.js +2 -2
  162. package/lib/sharing/ConsumeSharedRuntimeModule.js +8 -4
  163. package/lib/sharing/ProvideSharedModule.js +1 -1
  164. package/lib/sharing/ProvideSharedPlugin.js +1 -1
  165. package/lib/sharing/resolveMatchedConfigs.js +1 -1
  166. package/lib/stats/DefaultStatsFactoryPlugin.js +2 -2
  167. package/lib/stats/DefaultStatsPresetPlugin.js +1 -1
  168. package/lib/stats/DefaultStatsPrinterPlugin.js +1 -1
  169. package/lib/stats/StatsFactory.js +1 -1
  170. package/lib/typescript/TypeScriptPlugin.js +210 -0
  171. package/lib/url/URLParserPlugin.js +2 -2
  172. package/lib/util/AsyncQueue.js +2 -2
  173. package/lib/util/Hash.js +2 -2
  174. package/lib/util/LocConverter.js +53 -0
  175. package/lib/util/SortableSet.js +1 -1
  176. package/lib/util/cleverMerge.js +2 -2
  177. package/lib/util/comparators.js +3 -3
  178. package/lib/util/concatenate.js +3 -3
  179. package/lib/util/conventions.js +42 -1
  180. package/lib/util/createMappings.js +118 -0
  181. package/lib/{formatLocation.js → util/formatLocation.js} +2 -2
  182. package/lib/{SizeFormatHelpers.js → util/formatSize.js} +3 -1
  183. package/lib/util/fs.js +8 -8
  184. package/lib/util/hash/md4.js +1 -1
  185. package/lib/util/hash/xxhash64.js +1 -1
  186. package/lib/util/identifier.js +48 -0
  187. package/lib/util/internalSerializables.js +35 -19
  188. package/lib/util/magicComment.js +10 -7
  189. package/lib/util/parseJson.js +2 -73
  190. package/lib/util/source.js +21 -0
  191. package/lib/util/topologicalSort.js +69 -0
  192. package/lib/wasm-async/AsyncWebAssemblyModulesPlugin.js +2 -2
  193. package/lib/wasm-async/AsyncWebAssemblyParser.js +1 -1
  194. package/lib/wasm-sync/UnsupportedWebAssemblyFeatureError.js +5 -3
  195. package/lib/wasm-sync/WasmFinalizeExportsPlugin.js +1 -1
  196. package/lib/wasm-sync/WebAssemblyInInitialChunkError.js +5 -3
  197. package/lib/webpack.js +3 -1
  198. package/package.json +22 -20
  199. package/schemas/WebpackOptions.check.js +1 -1
  200. package/schemas/WebpackOptions.json +118 -3
  201. package/schemas/plugins/{DllPlugin.check.d.ts → HtmlGeneratorOptions.check.d.ts} +1 -1
  202. package/schemas/plugins/HtmlGeneratorOptions.check.js +6 -0
  203. package/schemas/plugins/HtmlGeneratorOptions.json +3 -0
  204. package/schemas/plugins/ProgressPlugin.check.js +1 -1
  205. package/schemas/plugins/ProgressPlugin.json +22 -0
  206. package/schemas/plugins/{DllReferencePlugin.check.d.ts → css/CssAutoOrModuleParserOptions.check.d.ts} +1 -1
  207. package/schemas/plugins/css/CssAutoOrModuleParserOptions.check.js +6 -0
  208. package/schemas/plugins/css/CssAutoOrModuleParserOptions.json +3 -0
  209. package/schemas/plugins/dll/DllPlugin.check.d.ts +7 -0
  210. package/schemas/plugins/dll/DllReferencePlugin.check.d.ts +7 -0
  211. package/types.d.ts +810 -101
  212. package/lib/CaseSensitiveModulesWarning.js +0 -80
  213. package/lib/GraphHelpers.js +0 -49
  214. package/lib/NoModeWarning.js +0 -23
  215. package/lib/css/CssMergeStyleSheetsRuntimeModule.js +0 -57
  216. /package/lib/{AbstractMethodError.js → errors/AbstractMethodError.js} +0 -0
  217. /package/schemas/plugins/{DllPlugin.check.js → dll/DllPlugin.check.js} +0 -0
  218. /package/schemas/plugins/{DllPlugin.json → dll/DllPlugin.json} +0 -0
  219. /package/schemas/plugins/{DllReferencePlugin.check.js → dll/DllReferencePlugin.check.js} +0 -0
  220. /package/schemas/plugins/{DllReferencePlugin.json → dll/DllReferencePlugin.json} +0 -0
package/types.d.ts CHANGED
@@ -6,7 +6,6 @@
6
6
 
7
7
  import { Parser as ParserImport } from "acorn";
8
8
  import { Buffer } from "buffer";
9
- import { Scope } from "eslint-scope";
10
9
  import {
11
10
  ArrayExpression,
12
11
  ArrayPattern,
@@ -849,6 +848,17 @@ declare interface BaseResolveRequest {
849
848
  */
850
849
  __innerRequest_relativePath?: string;
851
850
  }
851
+ declare interface BasenameCacheEntry {
852
+ /**
853
+ * cached dirname function
854
+ */
855
+ fn: (maybePath: string, suffix?: string) => string;
856
+
857
+ /**
858
+ * the underlying cache map
859
+ */
860
+ cache: Map<string, Map<undefined | string, undefined | string>>;
861
+ }
852
862
  declare abstract class BasicEvaluatedExpression {
853
863
  type: number;
854
864
  range?: [number, number];
@@ -935,19 +945,19 @@ declare abstract class BasicEvaluatedExpression {
935
945
  | MethodDefinition
936
946
  | PropertyDefinition
937
947
  | VariableDeclarator
938
- | ObjectPattern
939
- | ArrayPattern
940
- | RestElement
941
- | AssignmentPattern
942
- | SwitchCase
943
- | CatchClause
944
- | Property
945
948
  | AssignmentProperty
949
+ | Property
950
+ | CatchClause
946
951
  | ClassBody
947
952
  | ImportSpecifier
948
953
  | ImportDefaultSpecifier
949
954
  | ImportNamespaceSpecifier
950
955
  | ExportSpecifier
956
+ | ObjectPattern
957
+ | ArrayPattern
958
+ | RestElement
959
+ | AssignmentPattern
960
+ | SwitchCase
951
961
  | TemplateElement;
952
962
  isUnknown(): boolean;
953
963
  isNull(): boolean;
@@ -1170,19 +1180,19 @@ declare abstract class BasicEvaluatedExpression {
1170
1180
  | MethodDefinition
1171
1181
  | PropertyDefinition
1172
1182
  | VariableDeclarator
1173
- | ObjectPattern
1174
- | ArrayPattern
1175
- | RestElement
1176
- | AssignmentPattern
1177
- | SwitchCase
1178
- | CatchClause
1179
- | Property
1180
1183
  | AssignmentProperty
1184
+ | Property
1185
+ | CatchClause
1181
1186
  | ClassBody
1182
1187
  | ImportSpecifier
1183
1188
  | ImportDefaultSpecifier
1184
1189
  | ImportNamespaceSpecifier
1185
1190
  | ExportSpecifier
1191
+ | ObjectPattern
1192
+ | ArrayPattern
1193
+ | RestElement
1194
+ | AssignmentPattern
1195
+ | SwitchCase
1186
1196
  | TemplateElement
1187
1197
  ): BasicEvaluatedExpression;
1188
1198
  }
@@ -1511,7 +1521,7 @@ declare interface CallbackCacheCache<T> {
1511
1521
  * Creates a callback wrapper that waits for a fixed number of completions and
1512
1522
  * forwards the first error immediately.
1513
1523
  */
1514
- (err: null | WebpackError, result?: T): void;
1524
+ (err: null | Error, result?: T): void;
1515
1525
  }
1516
1526
  declare interface CallbackCacheCacheFacade<T> {
1517
1527
  (err?: null | Error, result?: null | T): void;
@@ -2683,6 +2693,11 @@ declare interface ChunkRenderContextCssModulesPlugin {
2683
2693
  */
2684
2694
  undoPath: string;
2685
2695
 
2696
+ /**
2697
+ * compilation hash
2698
+ */
2699
+ hash?: string;
2700
+
2686
2701
  /**
2687
2702
  * moduleFactoryCache
2688
2703
  */
@@ -3878,6 +3893,14 @@ declare interface CompilationHooksCssModulesPlugin {
3878
3893
  Source
3879
3894
  >;
3880
3895
  chunkHash: SyncHook<[Chunk, Hash, ChunkHashContext]>;
3896
+
3897
+ /**
3898
+ * called for each CSS source type (CSS_IMPORT_TYPE, CSS_TYPE) with the chunk's modules pre-sorted by full module name; return an ordered `Module[]` to override the default import-order topological sort, or return `undefined` to keep the default
3899
+ */
3900
+ orderModules: SyncBailHook<
3901
+ [Chunk, Module[], Compilation],
3902
+ undefined | void | Module[]
3903
+ >;
3881
3904
  }
3882
3905
  declare interface CompilationHooksJavascriptModulesPlugin {
3883
3906
  renderModuleContent: SyncWaterfallHook<
@@ -3946,6 +3969,52 @@ declare interface CompilationParams {
3946
3969
  normalModuleFactory: NormalModuleFactory;
3947
3970
  contextModuleFactory: ContextModuleFactory;
3948
3971
  }
3972
+ declare interface CompiledAliasOption {
3973
+ /**
3974
+ * original alias name
3975
+ */
3976
+ name: string;
3977
+
3978
+ /**
3979
+ * name + "/" — precomputed to avoid per-resolve concat
3980
+ */
3981
+ nameWithSlash: string;
3982
+
3983
+ /**
3984
+ * alias target(s)
3985
+ */
3986
+ alias: Alias;
3987
+
3988
+ /**
3989
+ * normalized onlyModule flag
3990
+ */
3991
+ onlyModule: boolean;
3992
+
3993
+ /**
3994
+ * absolute form of `name` (with slash ending), null when not absolute
3995
+ */
3996
+ absolutePath: null | string;
3997
+
3998
+ /**
3999
+ * substring before the single "*" in `name`, null when no wildcard
4000
+ */
4001
+ wildcardPrefix: null | string;
4002
+
4003
+ /**
4004
+ * substring after the single "*" in `name`, null when no wildcard
4005
+ */
4006
+ wildcardSuffix: null | string;
4007
+
4008
+ /**
4009
+ * first character code of `name` — used as a cheap screen on the hot path. `-1` indicates "matches any first char" (empty wildcard prefix).
4010
+ */
4011
+ firstCharCode: number;
4012
+
4013
+ /**
4014
+ * true when `alias` is an array — precomputed so the hot path skips `Array.isArray`
4015
+ */
4016
+ arrayAlias: boolean;
4017
+ }
3949
4018
  declare class Compiler {
3950
4019
  /**
3951
4020
  * Creates an instance of Compiler.
@@ -4610,6 +4679,11 @@ declare class ConstDependency extends NullDependency {
4610
4679
  * Returns true if the dependency is a low priority dependency.
4611
4680
  */
4612
4681
  static isLowPriorityDependency(dependency: Dependency): boolean;
4682
+
4683
+ /**
4684
+ * Returns true if the dependency can be concatenated (scope hoisting).
4685
+ */
4686
+ static canConcatenate(dependency: Dependency): boolean;
4613
4687
  static TRANSITIVE: symbol;
4614
4688
  }
4615
4689
  declare class ConstDependencyTemplate extends NullDependencyTemplate {
@@ -4934,6 +5008,11 @@ declare interface ContextResolveData {
4934
5008
  contextDependencies: LazySet<string>;
4935
5009
  dependencies: ContextDependency[];
4936
5010
  }
5011
+ type ContextTimestamp =
5012
+ | null
5013
+ | ContextFileSystemInfoEntry
5014
+ | "ignore"
5015
+ | ExistenceOnlyTimeEntryFileSystemInfo;
4937
5016
  declare interface ContextTimestampAndHash {
4938
5017
  safeTime: number;
4939
5018
  timestampHash?: string;
@@ -4956,6 +5035,66 @@ type CreatedObject<T, F> = T extends ChunkGroupInfoWithName[]
4956
5035
  : T extends (infer V)[]
4957
5036
  ? StatsObject<V, F>[]
4958
5037
  : StatsObject<T, F>;
5038
+
5039
+ /**
5040
+ * Parser options for css/auto and css/module modules.
5041
+ */
5042
+ declare interface CssAutoOrModuleParserOptions {
5043
+ /**
5044
+ * Enable/disable renaming of `@keyframes`.
5045
+ */
5046
+ animation?: boolean;
5047
+
5048
+ /**
5049
+ * Enable/disable renaming of `@container` names.
5050
+ */
5051
+ container?: boolean;
5052
+
5053
+ /**
5054
+ * Enable/disable renaming of custom identifiers.
5055
+ */
5056
+ customIdents?: boolean;
5057
+
5058
+ /**
5059
+ * Enable/disable renaming of dashed identifiers, e. g. custom properties.
5060
+ */
5061
+ dashedIdents?: boolean;
5062
+
5063
+ /**
5064
+ * Configure how CSS content is exported as default.
5065
+ */
5066
+ exportType?: "link" | "text" | "css-style-sheet" | "style";
5067
+
5068
+ /**
5069
+ * Enable/disable renaming of `@function` names.
5070
+ */
5071
+ function?: boolean;
5072
+
5073
+ /**
5074
+ * Enable/disable renaming of grid identifiers.
5075
+ */
5076
+ grid?: boolean;
5077
+
5078
+ /**
5079
+ * Enable/disable `@import` at-rules handling.
5080
+ */
5081
+ import?: boolean;
5082
+
5083
+ /**
5084
+ * Use ES modules named export for css exports.
5085
+ */
5086
+ namedExports?: boolean;
5087
+
5088
+ /**
5089
+ * Enable strict pure mode: every selector must contain at least one local class or id selector.
5090
+ */
5091
+ pure?: boolean;
5092
+
5093
+ /**
5094
+ * Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.
5095
+ */
5096
+ url?: boolean;
5097
+ }
4959
5098
  declare interface CssData {
4960
5099
  /**
4961
5100
  * whether export __esModule
@@ -4966,6 +5105,11 @@ declare interface CssData {
4966
5105
  * the css exports
4967
5106
  */
4968
5107
  exports: Map<string, string>;
5108
+
5109
+ /**
5110
+ * source position (line is 1-based, column is 0-based) of each export's defining identifier in the original CSS, used to emit fine-grained JS-to-CSS source mappings
5111
+ */
5112
+ exportLocs?: Map<string, { line: number; column: number }>;
4969
5113
  }
4970
5114
  declare abstract class CssGenerator extends Generator {
4971
5115
  options: CssModuleGeneratorOptions;
@@ -5057,6 +5201,7 @@ declare interface CssLoadingRuntimeModulePluginHooks {
5057
5201
  createStylesheet: SyncWaterfallHook<[string, Chunk], string>;
5058
5202
  linkPreload: SyncWaterfallHook<[string, Chunk], string>;
5059
5203
  linkPrefetch: SyncWaterfallHook<[string, Chunk], string>;
5204
+ linkInsert: SyncWaterfallHook<[string, Chunk], string>;
5060
5205
  }
5061
5206
  declare abstract class CssModule extends NormalModule {
5062
5207
  cssLayer: CssLayer;
@@ -5089,7 +5234,7 @@ declare interface CssModuleGeneratorOptions {
5089
5234
  | "camel-case-only"
5090
5235
  | "dashes"
5091
5236
  | "dashes-only"
5092
- | ((name: string) => string);
5237
+ | ((name: string) => string | string[]);
5093
5238
 
5094
5239
  /**
5095
5240
  * Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
@@ -5125,7 +5270,7 @@ declare interface CssModuleGeneratorOptions {
5125
5270
  }
5126
5271
 
5127
5272
  /**
5128
- * Parser options for css/module modules.
5273
+ * Parser options for css/global modules.
5129
5274
  */
5130
5275
  declare interface CssModuleParserOptions {
5131
5276
  /**
@@ -5280,6 +5425,10 @@ declare abstract class CssParser extends ParserClass {
5280
5425
  * Use ES modules named export for css exports.
5281
5426
  */
5282
5427
  namedExports: boolean;
5428
+ /**
5429
+ * Enable strict pure mode: every selector must contain at least one local class or id selector.
5430
+ */
5431
+ pure?: boolean;
5283
5432
  /**
5284
5433
  * Enable/disable `url()`/`image-set()`/`src()`/`image()` functions handling.
5285
5434
  */
@@ -5536,6 +5685,11 @@ declare class Dependency {
5536
5685
  */
5537
5686
  createIgnoredModule(context: string): Module;
5538
5687
 
5688
+ /**
5689
+ * Returns true if this dependency can be concatenated
5690
+ */
5691
+ canConcatenate(): boolean;
5692
+
5539
5693
  /**
5540
5694
  * Serializes this instance into the provided serializer context.
5541
5695
  */
@@ -5554,6 +5708,11 @@ declare class Dependency {
5554
5708
  * Returns true if the dependency is a low priority dependency.
5555
5709
  */
5556
5710
  static isLowPriorityDependency(dependency: Dependency): boolean;
5711
+
5712
+ /**
5713
+ * Returns true if the dependency can be concatenated (scope hoisting).
5714
+ */
5715
+ static canConcatenate(dependency: Dependency): boolean;
5557
5716
  static TRANSITIVE: symbol;
5558
5717
  }
5559
5718
  declare interface DependencyConstructor {
@@ -5855,6 +6014,17 @@ declare interface DirentTypes<T extends string | Buffer = string> {
5855
6014
  */
5856
6015
  path?: string;
5857
6016
  }
6017
+ declare interface DirnameCacheEntry {
6018
+ /**
6019
+ * cached dirname function
6020
+ */
6021
+ fn: (maybePath: string) => string;
6022
+
6023
+ /**
6024
+ * the underlying cache map
6025
+ */
6026
+ cache: Map<string, string>;
6027
+ }
5858
6028
  declare interface Disposable {
5859
6029
  [Symbol.dispose](): void;
5860
6030
  }
@@ -6783,6 +6953,12 @@ declare interface Experiments {
6783
6953
  */
6784
6954
  futureDefaults?: boolean;
6785
6955
 
6956
+ /**
6957
+ * Enable experimental HTML support. This flag does not by itself make `.html` files usable directly as entry points without additional HTML handling.
6958
+ * @experimental
6959
+ */
6960
+ html?: boolean;
6961
+
6786
6962
  /**
6787
6963
  * Compile entrypoints and import()s only when they are accessed.
6788
6964
  * @experimental
@@ -6806,6 +6982,12 @@ declare interface Experiments {
6806
6982
  * @experimental
6807
6983
  */
6808
6984
  syncWebAssembly?: boolean;
6985
+
6986
+ /**
6987
+ * Enable typescript support.
6988
+ * @experimental
6989
+ */
6990
+ typescript?: boolean;
6809
6991
  }
6810
6992
 
6811
6993
  /**
@@ -6854,6 +7036,12 @@ declare interface ExperimentsNormalized {
6854
7036
  */
6855
7037
  futureDefaults?: boolean;
6856
7038
 
7039
+ /**
7040
+ * Enable HTML entry support. Treats `.html` files as a first-class module type so they can be used directly as entry points.
7041
+ * @experimental
7042
+ */
7043
+ html?: boolean;
7044
+
6857
7045
  /**
6858
7046
  * Compile entrypoints and import()s only when they are accessed.
6859
7047
  * @experimental
@@ -6877,6 +7065,12 @@ declare interface ExperimentsNormalized {
6877
7065
  * @experimental
6878
7066
  */
6879
7067
  syncWebAssembly?: boolean;
7068
+
7069
+ /**
7070
+ * Enable typescript support.
7071
+ * @experimental
7072
+ */
7073
+ typescript?: boolean;
6880
7074
  }
6881
7075
  declare abstract class ExportInfo {
6882
7076
  name: string;
@@ -7954,13 +8148,7 @@ declare abstract class FileSystemInfo {
7954
8148
  * Adds file timestamps.
7955
8149
  */
7956
8150
  addFileTimestamps(
7957
- map: ReadonlyMap<
7958
- string,
7959
- | null
7960
- | FileSystemInfoEntry
7961
- | "ignore"
7962
- | ExistenceOnlyTimeEntryFileSystemInfo
7963
- >,
8151
+ map: ReadonlyMap<string, FileTimestamp>,
7964
8152
  immutable?: boolean
7965
8153
  ): void;
7966
8154
 
@@ -7968,13 +8156,7 @@ declare abstract class FileSystemInfo {
7968
8156
  * Adds context timestamps.
7969
8157
  */
7970
8158
  addContextTimestamps(
7971
- map: ReadonlyMap<
7972
- string,
7973
- | null
7974
- | ContextFileSystemInfoEntry
7975
- | "ignore"
7976
- | ExistenceOnlyTimeEntryFileSystemInfo
7977
- >,
8159
+ map: ReadonlyMap<string, ContextTimestamp>,
7978
8160
  immutable?: boolean
7979
8161
  ): void;
7980
8162
 
@@ -8081,6 +8263,11 @@ declare interface FileSystemInfoEntry {
8081
8263
  safeTime: number;
8082
8264
  timestamp?: number;
8083
8265
  }
8266
+ type FileTimestamp =
8267
+ | null
8268
+ | FileSystemInfoEntry
8269
+ | "ignore"
8270
+ | ExistenceOnlyTimeEntryFileSystemInfo;
8084
8271
  type FilterItemTypes = string | RegExp | ((value: string) => boolean);
8085
8272
  declare interface Flags {
8086
8273
  [index: string]: Argument;
@@ -8248,6 +8435,11 @@ declare interface GeneratorOptionsByModuleTypeKnown {
8248
8435
  */
8249
8436
  "css/module"?: CssModuleGeneratorOptions;
8250
8437
 
8438
+ /**
8439
+ * Generator options for html modules.
8440
+ */
8441
+ html?: HtmlGeneratorOptions;
8442
+
8251
8443
  /**
8252
8444
  * No generator options are supported for this module type.
8253
8445
  */
@@ -8544,6 +8736,11 @@ declare class HarmonyImportDependency extends ModuleDependency {
8544
8736
  * Returns true if the dependency is a low priority dependency.
8545
8737
  */
8546
8738
  static isLowPriorityDependency(dependency: Dependency): boolean;
8739
+
8740
+ /**
8741
+ * Returns true if the dependency can be concatenated (scope hoisting).
8742
+ */
8743
+ static canConcatenate(dependency: Dependency): boolean;
8547
8744
  static TRANSITIVE: symbol;
8548
8745
  }
8549
8746
  declare class HarmonyImportDependencyTemplate extends DependencyTemplate {
@@ -8695,6 +8892,67 @@ declare interface HotModuleReplacementPluginLoaderContext {
8695
8892
  declare class HotUpdateChunk extends Chunk {
8696
8893
  constructor();
8697
8894
  }
8895
+ declare abstract class HtmlGenerator extends Generator {
8896
+ options: HtmlGeneratorOptions;
8897
+
8898
+ /**
8899
+ * Processes the provided module.
8900
+ */
8901
+ sourceDependency(
8902
+ module: NormalModule,
8903
+ dependency: Dependency,
8904
+ initFragments: InitFragment<GenerateContext>[],
8905
+ source: ReplaceSource,
8906
+ generateContext: GenerateContext
8907
+ ): void;
8908
+
8909
+ /**
8910
+ * Processes the provided dependencies block.
8911
+ */
8912
+ sourceBlock(
8913
+ module: NormalModule,
8914
+ block: DependenciesBlock,
8915
+ initFragments: InitFragment<GenerateContext>[],
8916
+ source: ReplaceSource,
8917
+ generateContext: GenerateContext
8918
+ ): void;
8919
+
8920
+ /**
8921
+ * Processes the provided module.
8922
+ */
8923
+ sourceModule(
8924
+ module: NormalModule,
8925
+ initFragments: InitFragment<GenerateContext>[],
8926
+ source: ReplaceSource,
8927
+ generateContext: GenerateContext
8928
+ ): void;
8929
+
8930
+ /**
8931
+ * Generates fallback output for the provided error condition.
8932
+ */
8933
+ generateError(
8934
+ error: Error,
8935
+ module: NormalModule,
8936
+ generateContext: GenerateContext
8937
+ ): null | Source;
8938
+ }
8939
+
8940
+ /**
8941
+ * Generator options for html modules.
8942
+ */
8943
+ declare interface HtmlGeneratorOptions {
8944
+ /**
8945
+ * Emit the parsed and URL-rewritten HTML as a standalone `.html` output file alongside the module's JavaScript export. When unset, extraction defaults to `true` for HTML modules used as compilation entries (HTML entry points) and `false` for HTML modules imported from JavaScript. Filenames follow `output.htmlFilename` / `output.htmlChunkFilename`.
8946
+ */
8947
+ extract?: boolean;
8948
+ }
8949
+ declare abstract class HtmlParser extends ParserClass {
8950
+ magicCommentContext: ContextImport;
8951
+ hashFunction?: string | typeof Hash;
8952
+ context?: string;
8953
+ outputModule?: boolean;
8954
+ css?: boolean;
8955
+ }
8698
8956
 
8699
8957
  /**
8700
8958
  * Options for building http resources.
@@ -9111,6 +9369,7 @@ type IgnorePluginOptions =
9111
9369
  type ImportAttributes = Record<string, string> & {};
9112
9370
  declare interface ImportDependencyMeta {
9113
9371
  attributes?: ImportAttributes;
9372
+ phase?: 0 | 1 | 2;
9114
9373
  externalType?: "import" | "module";
9115
9374
  }
9116
9375
  type ImportExpressionJavascriptParser = ImportExpressionImport & {
@@ -9506,7 +9765,10 @@ declare class JavascriptParser extends ParserClass {
9506
9765
  */
9507
9766
  constructor(
9508
9767
  sourceType?: "module" | "auto" | "script",
9509
- options?: { parse?: (code: string, options: ParseOptions) => ParseResult }
9768
+ options?: {
9769
+ parse?: (code: string, options: ParseOptions) => ParseResult;
9770
+ typescript?: boolean;
9771
+ }
9510
9772
  );
9511
9773
  hooks: Readonly<{
9512
9774
  evaluateTypeof: HookMap<
@@ -9834,7 +10096,7 @@ declare class JavascriptParser extends ParserClass {
9834
10096
  boolean | void
9835
10097
  >;
9836
10098
  preDeclarator: SyncBailHook<
9837
- [VariableDeclarator, Statement],
10099
+ [VariableDeclarator, VariableDeclaration],
9838
10100
  boolean | void
9839
10101
  >;
9840
10102
  declarator: SyncBailHook<[VariableDeclarator, Statement], boolean | void>;
@@ -9947,7 +10209,10 @@ declare class JavascriptParser extends ParserClass {
9947
10209
  unusedStatement: SyncBailHook<[Statement], boolean | void>;
9948
10210
  }>;
9949
10211
  sourceType: "module" | "auto" | "script";
9950
- options: { parse?: (code: string, options: ParseOptions) => ParseResult };
10212
+ options: {
10213
+ parse?: (code: string, options: ParseOptions) => ParseResult;
10214
+ typescript?: boolean;
10215
+ };
9951
10216
  scope: ScopeInfo;
9952
10217
  state: JavascriptParserState;
9953
10218
  comments?: CommentJavascriptParser[];
@@ -10987,11 +11252,11 @@ declare class JavascriptParser extends ParserClass {
10987
11252
  | string
10988
11253
  | Identifier
10989
11254
  | MemberExpression
11255
+ | Property
10990
11256
  | ObjectPattern
10991
11257
  | ArrayPattern
10992
11258
  | RestElement
10993
11259
  | AssignmentPattern
10994
- | Property
10995
11260
  )[],
10996
11261
  fn: () => void
10997
11262
  ): void;
@@ -11066,11 +11331,11 @@ declare class JavascriptParser extends ParserClass {
11066
11331
  | string
11067
11332
  | Identifier
11068
11333
  | MemberExpression
11334
+ | Property
11069
11335
  | ObjectPattern
11070
11336
  | ArrayPattern
11071
11337
  | RestElement
11072
11338
  | AssignmentPattern
11073
- | Property
11074
11339
  )[],
11075
11340
  onIdent: (ident: string) => void
11076
11341
  ): void;
@@ -11082,11 +11347,11 @@ declare class JavascriptParser extends ParserClass {
11082
11347
  pattern:
11083
11348
  | Identifier
11084
11349
  | MemberExpression
11350
+ | Property
11085
11351
  | ObjectPattern
11086
11352
  | ArrayPattern
11087
11353
  | RestElement
11088
- | AssignmentPattern
11089
- | Property,
11354
+ | AssignmentPattern,
11090
11355
  onIdent: (ident: string, identifier: Identifier) => void
11091
11356
  ): void;
11092
11357
 
@@ -11486,6 +11751,11 @@ declare interface JavascriptParserOptions {
11486
11751
  */
11487
11752
  amd?: false | { [index: string]: any };
11488
11753
 
11754
+ /**
11755
+ * Set .name to "default" for anonymous default export functions and classes per ES spec. Disable to reduce output size when .name is not needed.
11756
+ */
11757
+ anonymousDefaultExportName?: boolean;
11758
+
11489
11759
  /**
11490
11760
  * Enable/disable special handling for browserify bundles.
11491
11761
  */
@@ -11647,6 +11917,12 @@ declare interface JavascriptParserOptions {
11647
11917
  */
11648
11918
  system?: boolean;
11649
11919
 
11920
+ /**
11921
+ * Enable typescript support.
11922
+ * @experimental
11923
+ */
11924
+ typescript?: boolean;
11925
+
11650
11926
  /**
11651
11927
  * Enable warnings when using the require function in a not statically analyse-able way.
11652
11928
  */
@@ -11695,6 +11971,17 @@ declare interface JavascriptParserOptions {
11695
11971
  type JavascriptParserState = ParserStateBase &
11696
11972
  Record<string, any> &
11697
11973
  KnownJavascriptParserState;
11974
+ declare interface JoinCacheEntry {
11975
+ /**
11976
+ * cached join function
11977
+ */
11978
+ fn: (rootPath: string, request: string) => string;
11979
+
11980
+ /**
11981
+ * the underlying cache map
11982
+ */
11983
+ cache: Map<string, Map<string, undefined | string>>;
11984
+ }
11698
11985
  declare abstract class JsonData {
11699
11986
  /**
11700
11987
  * Returns raw JSON data.
@@ -11735,22 +12022,6 @@ declare interface JsonGeneratorOptions {
11735
12022
  */
11736
12023
  JSONParse?: boolean;
11737
12024
  }
11738
- declare interface JsonModulesPluginParserOptions {
11739
- /**
11740
- * The depth of json dependency flagged as `exportInfo`.
11741
- */
11742
- exportsDepth?: number;
11743
-
11744
- /**
11745
- * Allow named exports for json of object type
11746
- */
11747
- namedExports?: boolean;
11748
-
11749
- /**
11750
- * Function that executes for a module source string and should return json-compatible data.
11751
- */
11752
- parse?: (input: string) => any;
11753
- }
11754
12025
  declare interface JsonObjectFs {
11755
12026
  [index: string]:
11756
12027
  | undefined
@@ -11772,7 +12043,7 @@ declare interface JsonObjectTypes {
11772
12043
  | JsonValueTypes[];
11773
12044
  }
11774
12045
  declare abstract class JsonParser extends ParserClass {
11775
- options: JsonModulesPluginParserOptions;
12046
+ options: JsonParserOptions;
11776
12047
  }
11777
12048
 
11778
12049
  /**
@@ -12060,7 +12331,8 @@ declare interface KnownBuildMeta {
12060
12331
  treatAsCommonJs?: boolean;
12061
12332
  async?: boolean;
12062
12333
  sideEffectFree?: boolean;
12063
- isCSSModule?: boolean;
12334
+ isCssModule?: boolean;
12335
+ needIdInConcatenation?: boolean;
12064
12336
  jsIncompatibleExports?: Record<string, string>;
12065
12337
  exportsFinalNameByRuntime?: Map<string, Record<string, string>>;
12066
12338
  exportsSourceByRuntime?: Map<string, string>;
@@ -12526,7 +12798,15 @@ declare interface LStatFs {
12526
12798
  ): void;
12527
12799
  }
12528
12800
  declare interface LStatSync {
12529
- (path: PathLikeFs, options?: undefined): IStatsFs;
12801
+ (path: PathLikeFs): IStatsFs;
12802
+ (
12803
+ path: PathLikeFs,
12804
+ options?: StatSyncOptions & { bigint?: false; throwIfNoEntry?: true }
12805
+ ): IStatsFs;
12806
+ (
12807
+ path: PathLikeFs,
12808
+ options: StatSyncOptions & { bigint: true; throwIfNoEntry?: true }
12809
+ ): IBigIntStatsFs;
12530
12810
  (
12531
12811
  path: PathLikeFs,
12532
12812
  options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false }
@@ -12535,14 +12815,9 @@ declare interface LStatSync {
12535
12815
  path: PathLikeFs,
12536
12816
  options: StatSyncOptions & { bigint: true; throwIfNoEntry: false }
12537
12817
  ): undefined | IBigIntStatsFs;
12538
- (path: PathLikeFs, options?: StatSyncOptions & { bigint?: false }): IStatsFs;
12539
- (
12540
- path: PathLikeFs,
12541
- options: StatSyncOptions & { bigint: true }
12542
- ): IBigIntStatsFs;
12543
12818
  (
12544
12819
  path: PathLikeFs,
12545
- options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }
12820
+ options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: true }
12546
12821
  ): IStatsFs | IBigIntStatsFs;
12547
12822
  (
12548
12823
  path: PathLikeFs,
@@ -13858,12 +14133,12 @@ declare class Module extends DependenciesBlock {
13858
14133
  /**
13859
14134
  * Adds the provided warning to the module.
13860
14135
  */
13861
- addWarning(warning: WebpackError): void;
14136
+ addWarning(warning: Error): void;
13862
14137
 
13863
14138
  /**
13864
14139
  * Returns list of warnings if any.
13865
14140
  */
13866
- getWarnings(): undefined | Iterable<WebpackError>;
14141
+ getWarnings(): undefined | Error[];
13867
14142
 
13868
14143
  /**
13869
14144
  * Gets number of warnings.
@@ -13873,12 +14148,12 @@ declare class Module extends DependenciesBlock {
13873
14148
  /**
13874
14149
  * Adds the provided error to the module.
13875
14150
  */
13876
- addError(error: WebpackError): void;
14151
+ addError(error: Error): void;
13877
14152
 
13878
14153
  /**
13879
14154
  * Returns list of errors if any.
13880
14155
  */
13881
- getErrors(): undefined | Iterable<WebpackError>;
14156
+ getErrors(): undefined | Error[];
13882
14157
 
13883
14158
  /**
13884
14159
  * Gets number of errors.
@@ -14140,6 +14415,11 @@ declare class ModuleDependency extends Dependency {
14140
14415
  * Returns true if the dependency is a low priority dependency.
14141
14416
  */
14142
14417
  static isLowPriorityDependency(dependency: Dependency): boolean;
14418
+
14419
+ /**
14420
+ * Returns true if the dependency can be concatenated (scope hoisting).
14421
+ */
14422
+ static canConcatenate(dependency: Dependency): boolean;
14143
14423
  static TRANSITIVE: symbol;
14144
14424
  }
14145
14425
  declare class ModuleExternalInitFragment extends InitFragment<GenerateContext> {
@@ -14208,6 +14488,11 @@ declare interface ModuleFactoryCacheEntry {
14208
14488
  */
14209
14489
  undoPath: string;
14210
14490
 
14491
+ /**
14492
+ * - The compilation hash
14493
+ */
14494
+ hash?: string;
14495
+
14211
14496
  /**
14212
14497
  * - The inheritance chain
14213
14498
  */
@@ -15472,7 +15757,6 @@ declare class NoEmitOnErrorsPlugin {
15472
15757
  */
15473
15758
  apply(compiler: Compiler): void;
15474
15759
  }
15475
- type Node = false | NodeOptions;
15476
15760
  declare class NodeEnvironmentPlugin {
15477
15761
  /**
15478
15762
  * Creates an instance of NodeEnvironmentPlugin.
@@ -15491,6 +15775,81 @@ declare interface NodeEnvironmentPluginOptions {
15491
15775
  */
15492
15776
  infrastructureLogging: InfrastructureLogging;
15493
15777
  }
15778
+ type NodeEstreeIndex =
15779
+ | Program
15780
+ | ImportDeclaration
15781
+ | ExportNamedDeclaration
15782
+ | ExportAllDeclaration
15783
+ | ImportExpressionImport
15784
+ | UnaryExpression
15785
+ | ArrayExpression
15786
+ | ArrowFunctionExpression
15787
+ | AssignmentExpression
15788
+ | AwaitExpression
15789
+ | BinaryExpression
15790
+ | SimpleCallExpression
15791
+ | NewExpression
15792
+ | ChainExpression
15793
+ | ClassExpression
15794
+ | ConditionalExpression
15795
+ | FunctionExpression
15796
+ | Identifier
15797
+ | SimpleLiteral
15798
+ | RegExpLiteral
15799
+ | BigIntLiteral
15800
+ | LogicalExpression
15801
+ | MemberExpression
15802
+ | MetaProperty
15803
+ | ObjectExpression
15804
+ | SequenceExpression
15805
+ | TaggedTemplateExpression
15806
+ | TemplateLiteral
15807
+ | ThisExpression
15808
+ | UpdateExpression
15809
+ | YieldExpression
15810
+ | SpreadElement
15811
+ | PrivateIdentifier
15812
+ | Super
15813
+ | FunctionDeclaration
15814
+ | VariableDeclaration
15815
+ | ClassDeclaration
15816
+ | ExpressionStatement
15817
+ | BlockStatement
15818
+ | StaticBlock
15819
+ | EmptyStatement
15820
+ | DebuggerStatement
15821
+ | WithStatement
15822
+ | ReturnStatement
15823
+ | LabeledStatement
15824
+ | BreakStatement
15825
+ | ContinueStatement
15826
+ | IfStatement
15827
+ | SwitchStatement
15828
+ | ThrowStatement
15829
+ | TryStatement
15830
+ | WhileStatement
15831
+ | DoWhileStatement
15832
+ | ForStatement
15833
+ | ForInStatement
15834
+ | ForOfStatement
15835
+ | ExportDefaultDeclaration
15836
+ | MethodDefinition
15837
+ | PropertyDefinition
15838
+ | VariableDeclarator
15839
+ | AssignmentProperty
15840
+ | Property
15841
+ | CatchClause
15842
+ | ClassBody
15843
+ | ImportSpecifier
15844
+ | ImportDefaultSpecifier
15845
+ | ImportNamespaceSpecifier
15846
+ | ExportSpecifier
15847
+ | ObjectPattern
15848
+ | ArrayPattern
15849
+ | RestElement
15850
+ | AssignmentPattern
15851
+ | SwitchCase
15852
+ | TemplateElement;
15494
15853
 
15495
15854
  /**
15496
15855
  * Options object for node compatibility features.
@@ -15548,6 +15907,7 @@ declare interface NodeTemplatePluginOptions {
15548
15907
  */
15549
15908
  asyncChunkLoading?: boolean;
15550
15909
  }
15910
+ type NodeWebpackOptions = false | NodeOptions;
15551
15911
  type NonNullable<T> = T & {};
15552
15912
  declare class NormalModule extends Module {
15553
15913
  constructor(__0: NormalModuleCreateData);
@@ -15564,7 +15924,7 @@ declare class NormalModule extends Module {
15564
15924
  matchResource?: string;
15565
15925
  loaders: LoaderItem[];
15566
15926
  extractSourceMap: boolean;
15567
- error: null | WebpackError;
15927
+ error: null | Error;
15568
15928
  getResource(): null | string;
15569
15929
 
15570
15930
  /**
@@ -15591,7 +15951,7 @@ declare class NormalModule extends Module {
15591
15951
  sourceMap?: null | string | RawSourceMap,
15592
15952
  associatedObjectForCache?: object
15593
15953
  ): Source;
15594
- markModuleAsErrored(error: WebpackError): void;
15954
+ markModuleAsErrored(error: Error): void;
15595
15955
  applyNoParseRule(
15596
15956
  rule: string | RegExp | ((content: string) => boolean),
15597
15957
  content: string
@@ -15803,6 +16163,7 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
15803
16163
  "css/global",
15804
16164
  SyncBailHook<[CssModuleParserOptions], CssParser>
15805
16165
  > &
16166
+ Record<"html", SyncBailHook<[EmptyParserOptions], HtmlParser>> &
15806
16167
  Record<string, SyncBailHook<[ParserOptions], ParserClass>>
15807
16168
  >;
15808
16169
  parser: TypedHookMap<
@@ -15857,6 +16218,7 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
15857
16218
  "css/global",
15858
16219
  SyncBailHook<[CssParser, CssModuleParserOptions], void>
15859
16220
  > &
16221
+ Record<"html", SyncBailHook<[HtmlParser, EmptyParserOptions], void>> &
15860
16222
  Record<string, SyncBailHook<[ParserClass, ParserOptions], void>>
15861
16223
  >;
15862
16224
  createGenerator: TypedHookMap<
@@ -15911,6 +16273,7 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
15911
16273
  "css/global",
15912
16274
  SyncBailHook<[CssModuleGeneratorOptions], CssGenerator>
15913
16275
  > &
16276
+ Record<"html", SyncBailHook<[EmptyGeneratorOptions], HtmlGenerator>> &
15914
16277
  Record<string, SyncBailHook<[GeneratorOptions], Generator>>
15915
16278
  >;
15916
16279
  generator: TypedHookMap<
@@ -15971,6 +16334,10 @@ declare abstract class NormalModuleFactory extends ModuleFactory {
15971
16334
  "css/global",
15972
16335
  SyncBailHook<[CssGenerator, CssModuleGeneratorOptions], void>
15973
16336
  > &
16337
+ Record<
16338
+ "html",
16339
+ SyncBailHook<[HtmlGenerator, EmptyGeneratorOptions], void>
16340
+ > &
15974
16341
  Record<string, SyncBailHook<[Generator, GeneratorOptions], void>>
15975
16342
  >;
15976
16343
  createModuleClass: HookMap<
@@ -16183,6 +16550,11 @@ declare class NullDependency extends Dependency {
16183
16550
  * Returns true if the dependency is a low priority dependency.
16184
16551
  */
16185
16552
  static isLowPriorityDependency(dependency: Dependency): boolean;
16553
+
16554
+ /**
16555
+ * Returns true if the dependency can be concatenated (scope hoisting).
16556
+ */
16557
+ static canConcatenate(dependency: Dependency): boolean;
16186
16558
  static TRANSITIVE: symbol;
16187
16559
  }
16188
16560
  declare class NullDependencyTemplate extends DependencyTemplate {
@@ -17201,6 +17573,20 @@ declare interface Output {
17201
17573
  */
17202
17574
  hotUpdateMainFilename?: string;
17203
17575
 
17576
+ /**
17577
+ * Specifies the filename template of non-initial output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
17578
+ */
17579
+ htmlChunkFilename?:
17580
+ | string
17581
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
17582
+
17583
+ /**
17584
+ * Specifies the filename template of output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
17585
+ */
17586
+ htmlFilename?:
17587
+ | string
17588
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
17589
+
17204
17590
  /**
17205
17591
  * Ignore warnings in the browser.
17206
17592
  */
@@ -17524,6 +17910,20 @@ declare interface OutputNormalized {
17524
17910
  */
17525
17911
  hotUpdateMainFilename?: string;
17526
17912
 
17913
+ /**
17914
+ * Specifies the filename template of non-initial output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
17915
+ */
17916
+ htmlChunkFilename?:
17917
+ | string
17918
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
17919
+
17920
+ /**
17921
+ * Specifies the filename template of output html files on disk. You must **not** specify an absolute path here, but the path may contain folders separated by '/'! The specified path is joined with the value of the 'output.path' option to determine the location on disk.
17922
+ */
17923
+ htmlFilename?:
17924
+ | string
17925
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
17926
+
17527
17927
  /**
17528
17928
  * Ignore warnings in the browser.
17529
17929
  */
@@ -17791,19 +18191,19 @@ declare interface ParserOptionsByModuleTypeKnown {
17791
18191
  css?: CssParserOptions;
17792
18192
 
17793
18193
  /**
17794
- * Parser options for css/module modules.
18194
+ * Parser options for css/auto and css/module modules.
17795
18195
  */
17796
- "css/auto"?: CssModuleParserOptions;
18196
+ "css/auto"?: CssAutoOrModuleParserOptions;
17797
18197
 
17798
18198
  /**
17799
- * Parser options for css/module modules.
18199
+ * Parser options for css/global modules.
17800
18200
  */
17801
18201
  "css/global"?: CssModuleParserOptions;
17802
18202
 
17803
18203
  /**
17804
- * Parser options for css/module modules.
18204
+ * Parser options for css/auto and css/module modules.
17805
18205
  */
17806
- "css/module"?: CssModuleParserOptions;
18206
+ "css/module"?: CssAutoOrModuleParserOptions;
17807
18207
 
17808
18208
  /**
17809
18209
  * Parser options for javascript modules.
@@ -17845,6 +18245,22 @@ declare interface ParserStateBase {
17845
18245
  compilation: Compilation;
17846
18246
  options: WebpackOptionsNormalizedWithDefaults;
17847
18247
  }
18248
+ declare interface PathCacheFunctions {
18249
+ /**
18250
+ * cached join
18251
+ */
18252
+ join: JoinCacheEntry;
18253
+
18254
+ /**
18255
+ * cached dirname
18256
+ */
18257
+ dirname: DirnameCacheEntry;
18258
+
18259
+ /**
18260
+ * cached basename
18261
+ */
18262
+ basename: BasenameCacheEntry;
18263
+ }
17848
18264
  declare interface PathData {
17849
18265
  chunkGraph?: ChunkGraph;
17850
18266
  hash?: string;
@@ -18102,6 +18518,18 @@ declare class ProgressPlugin {
18102
18518
  showDependencies: boolean;
18103
18519
  showActiveModules: boolean;
18104
18520
  percentBy: null | "entries" | "modules" | "dependencies";
18521
+ progressBar:
18522
+ | false
18523
+ | Required<{
18524
+ /**
18525
+ * Color used for the filled portion of the bar.
18526
+ */
18527
+ color?: string;
18528
+ /**
18529
+ * Name shown before the progress bar.
18530
+ */
18531
+ name?: string;
18532
+ }>;
18105
18533
 
18106
18534
  /**
18107
18535
  * Applies the plugin by registering its hooks on the compiler.
@@ -18117,7 +18545,19 @@ declare class ProgressPlugin {
18117
18545
  static defaultOptions: Required<Omit<ProgressPluginOptions, "handler">>;
18118
18546
  static createDefaultHandler: (
18119
18547
  profile: undefined | null | boolean,
18120
- logger: WebpackLogger
18548
+ logger: WebpackLogger,
18549
+ progressBar:
18550
+ | false
18551
+ | Required<{
18552
+ /**
18553
+ * Color used for the filled portion of the bar.
18554
+ */
18555
+ color?: string;
18556
+ /**
18557
+ * Name shown before the progress bar.
18558
+ */
18559
+ name?: string;
18560
+ }>
18121
18561
  ) => (percentage: number, msg: string, ...args: string[]) => void;
18122
18562
  }
18123
18563
  type ProgressPluginArgument =
@@ -18172,6 +18612,22 @@ declare interface ProgressPluginOptions {
18172
18612
  * Collect profile data for progress steps. Default: false.
18173
18613
  */
18174
18614
  profile?: null | boolean;
18615
+
18616
+ /**
18617
+ * Generate progress bar. Default: false.
18618
+ */
18619
+ progressBar?:
18620
+ | boolean
18621
+ | {
18622
+ /**
18623
+ * Color used for the filled portion of the bar.
18624
+ */
18625
+ color?: string;
18626
+ /**
18627
+ * Name shown before the progress bar.
18628
+ */
18629
+ name?: string;
18630
+ };
18175
18631
  }
18176
18632
  declare class ProvidePlugin {
18177
18633
  /**
@@ -18997,6 +19453,93 @@ type RecursiveArrayOrRecord<T> =
18997
19453
  | RecursiveArrayOrRecord<T>[]
18998
19454
  | T;
18999
19455
  declare interface RecursiveNonNullable<T> {}
19456
+ declare interface Reference {
19457
+ identifier: Identifier;
19458
+ from: Scope;
19459
+ resolved: null | Variable;
19460
+ writeExpr:
19461
+ | null
19462
+ | Program
19463
+ | ImportDeclaration
19464
+ | ExportNamedDeclaration
19465
+ | ExportAllDeclaration
19466
+ | ImportExpressionImport
19467
+ | UnaryExpression
19468
+ | ArrayExpression
19469
+ | ArrowFunctionExpression
19470
+ | AssignmentExpression
19471
+ | AwaitExpression
19472
+ | BinaryExpression
19473
+ | SimpleCallExpression
19474
+ | NewExpression
19475
+ | ChainExpression
19476
+ | ClassExpression
19477
+ | ConditionalExpression
19478
+ | FunctionExpression
19479
+ | Identifier
19480
+ | SimpleLiteral
19481
+ | RegExpLiteral
19482
+ | BigIntLiteral
19483
+ | LogicalExpression
19484
+ | MemberExpression
19485
+ | MetaProperty
19486
+ | ObjectExpression
19487
+ | SequenceExpression
19488
+ | TaggedTemplateExpression
19489
+ | TemplateLiteral
19490
+ | ThisExpression
19491
+ | UpdateExpression
19492
+ | YieldExpression
19493
+ | SpreadElement
19494
+ | PrivateIdentifier
19495
+ | Super
19496
+ | FunctionDeclaration
19497
+ | VariableDeclaration
19498
+ | ClassDeclaration
19499
+ | ExpressionStatement
19500
+ | BlockStatement
19501
+ | StaticBlock
19502
+ | EmptyStatement
19503
+ | DebuggerStatement
19504
+ | WithStatement
19505
+ | ReturnStatement
19506
+ | LabeledStatement
19507
+ | BreakStatement
19508
+ | ContinueStatement
19509
+ | IfStatement
19510
+ | SwitchStatement
19511
+ | ThrowStatement
19512
+ | TryStatement
19513
+ | WhileStatement
19514
+ | DoWhileStatement
19515
+ | ForStatement
19516
+ | ForInStatement
19517
+ | ForOfStatement
19518
+ | ExportDefaultDeclaration
19519
+ | MethodDefinition
19520
+ | PropertyDefinition
19521
+ | VariableDeclarator
19522
+ | AssignmentProperty
19523
+ | Property
19524
+ | CatchClause
19525
+ | ClassBody
19526
+ | ImportSpecifier
19527
+ | ImportDefaultSpecifier
19528
+ | ImportNamespaceSpecifier
19529
+ | ExportSpecifier
19530
+ | ObjectPattern
19531
+ | ArrayPattern
19532
+ | RestElement
19533
+ | AssignmentPattern
19534
+ | SwitchCase
19535
+ | TemplateElement;
19536
+ init: boolean;
19537
+ isWrite: () => boolean;
19538
+ isRead: () => boolean;
19539
+ isWriteOnly: () => boolean;
19540
+ isReadOnly: () => boolean;
19541
+ isReadWrite: () => boolean;
19542
+ }
19000
19543
  type ReferenceableItem = string | object;
19001
19544
  declare interface ReferencedExport {
19002
19545
  /**
@@ -19094,6 +19637,11 @@ declare interface RenderContextCssModulesPlugin {
19094
19637
  */
19095
19638
  undoPath: string;
19096
19639
 
19640
+ /**
19641
+ * compilation hash
19642
+ */
19643
+ hash?: string;
19644
+
19097
19645
  /**
19098
19646
  * modules
19099
19647
  */
@@ -19260,9 +19808,9 @@ declare interface ResolveContext {
19260
19808
  missingDependencies?: WriteOnlySet<string>;
19261
19809
 
19262
19810
  /**
19263
- * set of hooks' calls. For instance, `resolve → parsedResolve → describedResolve`,
19811
+ * tip of the resolver call stack (a singly-linked list with Set-like API). For instance, `resolve → parsedResolve → describedResolve`. Accepts a legacy `Set<string>` for back-compat with older callers; it is normalized internally without a hot-path branch.
19264
19812
  */
19265
- stack?: Set<string>;
19813
+ stack?: Set<string> | StackEntry;
19266
19814
 
19267
19815
  /**
19268
19816
  * log function
@@ -19538,6 +20086,11 @@ declare interface ResolveOptionsResolverFactoryObject1 {
19538
20086
  */
19539
20087
  extensionAlias: ExtensionAliasOption[];
19540
20088
 
20089
+ /**
20090
+ * apply extension alias to exports field targets
20091
+ */
20092
+ extensionAliasForExports: boolean;
20093
+
19541
20094
  /**
19542
20095
  * cache predicate
19543
20096
  */
@@ -19674,6 +20227,11 @@ declare interface ResolveOptionsResolverFactoryObject2 {
19674
20227
  */
19675
20228
  extensionAlias?: ExtensionAliasOptions;
19676
20229
 
20230
+ /**
20231
+ * Also apply `extensionAlias` to paths resolved through the package.json `exports` field. Off by default (Node.js-aligned); when enabled, matches TypeScript's behavior for packages that ship TS sources alongside compiled JS.
20232
+ */
20233
+ extensionAliasForExports?: boolean;
20234
+
19677
20235
  /**
19678
20236
  * A list of alias fields in description files
19679
20237
  */
@@ -19840,6 +20398,7 @@ declare interface ResolvedOptions {
19840
20398
  declare abstract class Resolver {
19841
20399
  fileSystem: FileSystem;
19842
20400
  options: ResolveOptionsResolverFactoryObject1;
20401
+ pathCache: PathCacheFunctions;
19843
20402
  hooks: KnownHooks;
19844
20403
  ensureHook(
19845
20404
  name:
@@ -19863,11 +20422,57 @@ declare abstract class Resolver {
19863
20422
  [ResolveRequest, ResolveContext],
19864
20423
  null | ResolveRequest
19865
20424
  >;
20425
+ resolveSync(
20426
+ path: string,
20427
+ request: string,
20428
+ resolveContext?: ResolveContext
20429
+ ): string | false;
19866
20430
  resolveSync(
19867
20431
  context: ContextTypes,
19868
20432
  path: string,
19869
- request: string
20433
+ request: string,
20434
+ resolveContext?: ResolveContext
19870
20435
  ): string | false;
20436
+ resolvePromise(
20437
+ path: string,
20438
+ request: string,
20439
+ resolveContext?: ResolveContext
20440
+ ): Promise<string | false>;
20441
+ resolvePromise(
20442
+ context: ContextTypes,
20443
+ path: string,
20444
+ request: string,
20445
+ resolveContext?: ResolveContext
20446
+ ): Promise<string | false>;
20447
+ resolve(
20448
+ path: string,
20449
+ request: string,
20450
+ callback: (
20451
+ err: null | ErrorWithDetail,
20452
+ res?: string | false,
20453
+ req?: ResolveRequest
20454
+ ) => void
20455
+ ): void;
20456
+ resolve(
20457
+ path: string,
20458
+ request: string,
20459
+ resolveContext: ResolveContext,
20460
+ callback: (
20461
+ err: null | ErrorWithDetail,
20462
+ res?: string | false,
20463
+ req?: ResolveRequest
20464
+ ) => void
20465
+ ): void;
20466
+ resolve(
20467
+ context: ContextTypes,
20468
+ path: string,
20469
+ request: string,
20470
+ callback: (
20471
+ err: null | ErrorWithDetail,
20472
+ res?: string | false,
20473
+ req?: ResolveRequest
20474
+ ) => void
20475
+ ): void;
19871
20476
  resolve(
19872
20477
  context: ContextTypes,
19873
20478
  path: string,
@@ -19893,8 +20498,10 @@ declare abstract class Resolver {
19893
20498
  isModule(path: string): boolean;
19894
20499
  isPrivate(path: string): boolean;
19895
20500
  isDirectory(path: string): boolean;
19896
- join(path: string, request: string): string;
19897
20501
  normalize(path: string): string;
20502
+ join(path: string, request: string): string;
20503
+ dirname(path: string): string;
20504
+ basename(path: string, suffix?: string): string;
19898
20505
  }
19899
20506
  declare interface ResolverCache {
19900
20507
  direct: WeakMap<ResolveOptionsWithDependencyType, ResolverWithOptions>;
@@ -21136,6 +21743,33 @@ declare interface RuntimeValueOptions {
21136
21743
  buildDependencies?: string[];
21137
21744
  version?: string | (() => string);
21138
21745
  }
21746
+ declare interface Scope {
21747
+ type:
21748
+ | "function"
21749
+ | "module"
21750
+ | "global"
21751
+ | "block"
21752
+ | "catch"
21753
+ | "class"
21754
+ | "class-field-initializer"
21755
+ | "class-static-block"
21756
+ | "for"
21757
+ | "function-expression-name"
21758
+ | "switch"
21759
+ | "with"
21760
+ | "TDZ";
21761
+ isStrict: boolean;
21762
+ upper: null | Scope;
21763
+ childScopes: Scope[];
21764
+ variableScope: Scope;
21765
+ block: NodeEstreeIndex;
21766
+ variables: Variable[];
21767
+ set: Map<string, Variable>;
21768
+ references: Reference[];
21769
+ through: Reference[];
21770
+ functionExpressionScope: boolean;
21771
+ implicit?: { variables: Variable[]; set: Map<string, Variable> };
21772
+ }
21139
21773
 
21140
21774
  /**
21141
21775
  * Helper function for joining two ranges into a single range. This is useful
@@ -21604,7 +22238,7 @@ declare abstract class SortableSet<T> extends Set<T> {
21604
22238
  /**
21605
22239
  * Get data from cache
21606
22240
  */
21607
- getFromCache<R extends unknown>(fn: (set: SortableSet<T>) => R): R;
22241
+ getFromCache<R>(fn: (set: SortableSet<T>) => R): R;
21608
22242
 
21609
22243
  /**
21610
22244
  * Get data from cache (ignoring sorting)
@@ -21620,6 +22254,7 @@ declare class Source {
21620
22254
  constructor();
21621
22255
  source(): SourceValue;
21622
22256
  buffer(): Buffer;
22257
+ buffers(): Buffer[];
21623
22258
  size(): number;
21624
22259
  map(options?: MapOptions): null | RawSourceMap;
21625
22260
  sourceAndMap(options?: MapOptions): SourceAndMap;
@@ -21647,6 +22282,11 @@ declare interface SourceLike {
21647
22282
  */
21648
22283
  buffer?: () => Buffer;
21649
22284
 
22285
+ /**
22286
+ * buffers
22287
+ */
22288
+ buffers?: () => Buffer[];
22289
+
21650
22290
  /**
21651
22291
  * size
21652
22292
  */
@@ -21861,6 +22501,52 @@ declare interface SplitData {
21861
22501
  modules: string[];
21862
22502
  size: number;
21863
22503
  }
22504
+ declare abstract class StackEntry {
22505
+ name?: string;
22506
+ path: string | false;
22507
+ request: string;
22508
+ query: string;
22509
+ fragment: string;
22510
+ directory: boolean;
22511
+ module: boolean;
22512
+ parent?: StackEntry;
22513
+
22514
+ /**
22515
+ * Strings seeded by callers that still pass `stack: new Set([...])`.
22516
+ * Propagated through the chain so deeper `doResolve` calls still see
22517
+ * them during recursion checks. `undefined` in the common case so
22518
+ * there is no extra work on the hot path.
22519
+ */
22520
+ preSeeded?: Set<string>;
22521
+
22522
+ /**
22523
+ * Walk the linked list looking for an entry with the same request shape.
22524
+ * Set-compatible: callers that used `stack.has(entry)` keep working.
22525
+ * NOTE: kept monomorphic on purpose. An earlier draft accepted a string
22526
+ * query too (so pre-5.21 plugins keeping their own `Set<string>` of
22527
+ * seen entries could probe the live stack with the formatted form),
22528
+ * but adding the second shape regressed `doResolve`'s heap profile by
22529
+ * ~1 MiB / 200 resolves on stack-churn — V8 keeps a polymorphic
22530
+ * call-site state for `parent.has(stackEntry)` once `has` has two
22531
+ * argument shapes. Plugins that need string membership can reach for
22532
+ * `[...stack].find(e => e.includes(formattedString))` via the
22533
+ * `String`-method proxies on `StackEntry` instead.
22534
+ */
22535
+ has(query: StackEntry): boolean;
22536
+
22537
+ /**
22538
+ * Number of entries on the stack (oldest-to-newest length).
22539
+ */
22540
+ get size(): number;
22541
+
22542
+ /**
22543
+ * Human-readable form used in recursion error messages, logs, and the
22544
+ * iterator above. Not memoized: caching would require an extra slot on
22545
+ * every `StackEntry`, which costs heap even on resolves that never look
22546
+ * at the formatted form.
22547
+ */
22548
+ toString(): string;
22549
+ }
21864
22550
  declare abstract class StackedMap<K, V> {
21865
22551
  map: Map<K, InternalCell<V>>;
21866
22552
  stack: Map<K, InternalCell<V>>[];
@@ -22012,7 +22698,15 @@ declare interface StatOptionsTypes {
22012
22698
  bigint?: boolean;
22013
22699
  }
22014
22700
  declare interface StatSync {
22015
- (path: PathLikeFs, options?: undefined): IStatsFs;
22701
+ (path: PathLikeFs): IStatsFs;
22702
+ (
22703
+ path: PathLikeFs,
22704
+ options?: StatSyncOptions & { bigint?: false; throwIfNoEntry?: true }
22705
+ ): IStatsFs;
22706
+ (
22707
+ path: PathLikeFs,
22708
+ options: StatSyncOptions & { bigint: true; throwIfNoEntry?: true }
22709
+ ): IBigIntStatsFs;
22016
22710
  (
22017
22711
  path: PathLikeFs,
22018
22712
  options?: StatSyncOptions & { bigint?: false; throwIfNoEntry: false }
@@ -22021,14 +22715,9 @@ declare interface StatSync {
22021
22715
  path: PathLikeFs,
22022
22716
  options: StatSyncOptions & { bigint: true; throwIfNoEntry: false }
22023
22717
  ): undefined | IBigIntStatsFs;
22024
- (path: PathLikeFs, options?: StatSyncOptions & { bigint?: false }): IStatsFs;
22025
22718
  (
22026
22719
  path: PathLikeFs,
22027
- options: StatSyncOptions & { bigint: true }
22028
- ): IBigIntStatsFs;
22029
- (
22030
- path: PathLikeFs,
22031
- options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: false }
22720
+ options: StatSyncOptions & { bigint: boolean; throwIfNoEntry?: true }
22032
22721
  ): IStatsFs | IBigIntStatsFs;
22033
22722
  (
22034
22723
  path: PathLikeFs,
@@ -23039,7 +23728,7 @@ declare interface TsconfigPathsData {
23039
23728
  /**
23040
23729
  * tsconfig file data
23041
23730
  */
23042
- alias: AliasOption[];
23731
+ alias: CompiledAliasOption[];
23043
23732
 
23044
23733
  /**
23045
23734
  * tsconfig file data
@@ -23067,6 +23756,11 @@ declare interface TsconfigPathsMap {
23067
23756
  */
23068
23757
  allContexts: { [index: string]: TsconfigPathsData };
23069
23758
 
23759
+ /**
23760
+ * precomputed `Object.keys(allContexts)` — read-only; used on the `_selectPathsDataForContext` hot path
23761
+ */
23762
+ contextList: string[];
23763
+
23070
23764
  /**
23071
23765
  * file dependencies
23072
23766
  */
@@ -23097,6 +23791,13 @@ type ValueCacheVersion = string | Set<string>;
23097
23791
  declare interface Values {
23098
23792
  [index: string]: Value[];
23099
23793
  }
23794
+ declare interface Variable {
23795
+ name: string;
23796
+ scope: Scope;
23797
+ identifiers: Identifier[];
23798
+ references: Reference[];
23799
+ defs: any[];
23800
+ }
23100
23801
  declare class VariableInfo {
23101
23802
  /**
23102
23803
  * Creates an instance of VariableInfo.
@@ -23824,7 +24525,7 @@ declare interface WebpackOptionsNormalized {
23824
24525
  /**
23825
24526
  * Include polyfills or mocks for various node stuff.
23826
24527
  */
23827
- node: Node;
24528
+ node: NodeWebpackOptions;
23828
24529
 
23829
24530
  /**
23830
24531
  * Enables/Disables integrated optimizations.
@@ -23931,11 +24632,11 @@ type WebpackOptionsNormalizedWithDefaults = WebpackOptionsNormalized & {
23931
24632
  use: RawDevTool;
23932
24633
  }[]
23933
24634
  >;
23934
- } & { stats: NonNullable<StatsValue> } & { node: NonNullable<Node> } & {
23935
- profile: NonNullable<undefined | boolean>;
23936
- } & { parallelism: number } & { snapshot: SnapshotNormalizedWithDefaults } & {
23937
- externalsPresets: ExternalsPresetsNormalizedWithDefaults;
23938
- } & {
24635
+ } & { stats: NonNullable<StatsValue> } & {
24636
+ node: NonNullable<NodeWebpackOptions>;
24637
+ } & { profile: NonNullable<undefined | boolean> } & { parallelism: number } & {
24638
+ snapshot: SnapshotNormalizedWithDefaults;
24639
+ } & { externalsPresets: ExternalsPresetsNormalizedWithDefaults } & {
23939
24640
  externalsType: NonNullable<
23940
24641
  | undefined
23941
24642
  | "import"
@@ -24232,7 +24933,6 @@ declare namespace exports {
24232
24933
  export let createScript: "__webpack_require__.ts";
24233
24934
  export let createScriptUrl: "__webpack_require__.tu";
24234
24935
  export let cssInjectStyle: "__webpack_require__.is";
24235
- export let cssMergeStyleSheets: "__webpack_require__.mcs";
24236
24936
  export let currentRemoteGetScope: "__webpack_require__.R";
24237
24937
  export let deferredModuleAsyncTransitiveDependencies: "__webpack_require__.zT";
24238
24938
  export let deferredModuleAsyncTransitiveDependenciesSymbol: "__webpack_require__.zS";
@@ -24290,6 +24990,7 @@ declare namespace exports {
24290
24990
  export let returnExportsFromRuntime: "return-exports-from-runtime";
24291
24991
  export let runtimeId: "__webpack_require__.j";
24292
24992
  export let scriptNonce: "__webpack_require__.nc";
24993
+ export let setAnonymousDefaultName: "__webpack_require__.dn";
24293
24994
  export let shareScopeMap: "__webpack_require__.S";
24294
24995
  export let startup: "__webpack_require__.x";
24295
24996
  export let startupEntrypoint: "__webpack_require__.X";
@@ -24456,6 +25157,14 @@ declare namespace exports {
24456
25157
  export namespace library {
24457
25158
  export { AbstractLibraryPlugin, EnableLibraryPlugin };
24458
25159
  }
25160
+ export namespace dll {
25161
+ export {
25162
+ DelegatedPlugin,
25163
+ DllPlugin,
25164
+ DllReferencePlugin,
25165
+ LibManifestPlugin
25166
+ };
25167
+ }
24459
25168
  export namespace container {
24460
25169
  export const scope: <T>(
24461
25170
  scope: string,
@@ -24747,10 +25456,7 @@ declare namespace exports {
24747
25456
  ContextExclusionPlugin,
24748
25457
  ContextReplacementPlugin,
24749
25458
  DefinePlugin,
24750
- DelegatedPlugin,
24751
25459
  Dependency,
24752
- DllPlugin,
24753
- DllReferencePlugin,
24754
25460
  DynamicEntryPlugin,
24755
25461
  DotenvPlugin,
24756
25462
  EntryOptionPlugin,
@@ -24766,7 +25472,6 @@ declare namespace exports {
24766
25472
  InitFragment,
24767
25473
  IgnorePlugin,
24768
25474
  JavascriptModulesPlugin,
24769
- LibManifestPlugin,
24770
25475
  LibraryTemplatePlugin,
24771
25476
  LoaderOptionsPlugin,
24772
25477
  LoaderTargetPlugin,
@@ -24795,6 +25500,10 @@ declare namespace exports {
24795
25500
  WebpackOptionsDefaulter,
24796
25501
  ValidationError as WebpackOptionsValidationError,
24797
25502
  ValidationError,
25503
+ DelegatedPlugin,
25504
+ DllPlugin,
25505
+ DllReferencePlugin,
25506
+ LibManifestPlugin,
24798
25507
  EntryLibIndex as Entry,
24799
25508
  EntryNormalized,
24800
25509
  EntryObject,