@umijs/bundler-webpack 4.0.0-beta.8 → 4.0.0-canary-20240513.3

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 (297) hide show
  1. package/client/client/client.js +255 -167
  2. package/client/constants.d.ts +15 -0
  3. package/client/constants.js +30 -12
  4. package/client/utils/formatWebpackMessages.d.ts +12 -0
  5. package/client/utils/formatWebpackMessages.js +87 -86
  6. package/compiled/autoprefixer/browserslist/index.d.ts +33 -7
  7. package/compiled/autoprefixer/index.js +3 -3
  8. package/compiled/autoprefixer/package.json +1 -1
  9. package/compiled/autoprefixer/postcss/lib/at-rule.d.ts +1 -1
  10. package/compiled/autoprefixer/postcss/lib/comment.d.ts +1 -1
  11. package/compiled/autoprefixer/postcss/lib/container.d.ts +2 -2
  12. package/compiled/autoprefixer/postcss/lib/css-syntax-error.d.ts +55 -8
  13. package/compiled/autoprefixer/postcss/lib/declaration.d.ts +2 -2
  14. package/compiled/autoprefixer/postcss/lib/input.d.ts +26 -6
  15. package/compiled/autoprefixer/postcss/lib/lazy-result.d.ts +11 -10
  16. package/compiled/autoprefixer/postcss/lib/no-work-result.d.ts +37 -0
  17. package/compiled/autoprefixer/postcss/lib/node.d.ts +38 -4
  18. package/compiled/autoprefixer/postcss/lib/postcss.d.ts +31 -30
  19. package/compiled/autoprefixer/postcss/lib/processor.d.ts +6 -5
  20. package/compiled/autoprefixer/postcss/lib/result.d.ts +3 -2
  21. package/compiled/autoprefixer/postcss/lib/rule.d.ts +1 -1
  22. package/compiled/autoprefixer/postcss/lib/warning.d.ts +37 -3
  23. package/compiled/autoprefixer/source-map-js/source-map.d.ts +99 -82
  24. package/compiled/babel-loader/index.js +8 -2
  25. package/compiled/babel-loader/package.json +1 -1
  26. package/compiled/copy-webpack-plugin/939.index.js +1171 -0
  27. package/compiled/copy-webpack-plugin/index.js +16 -10
  28. package/compiled/copy-webpack-plugin/package.json +1 -1
  29. package/compiled/css-minimizer-webpack-plugin/index.js +8 -2
  30. package/compiled/css-minimizer-webpack-plugin/minify.js +23 -22
  31. package/compiled/css-minimizer-webpack-plugin/package.json +1 -1
  32. package/compiled/css-minimizer-webpack-plugin/utils.js +305 -54
  33. package/compiled/cssnano/index.js +12 -11
  34. package/compiled/cssnano/package.json +1 -1
  35. package/compiled/express.d.ts +2 -0
  36. package/compiled/file-loader/index.js +3 -0
  37. package/compiled/file-loader/package.json +1 -0
  38. package/compiled/less-loader/index.js +1 -1
  39. package/compiled/less-loader/package.json +1 -1
  40. package/compiled/mini-css-extract-plugin/hmr/hotModuleReplacement.js +60 -46
  41. package/compiled/mini-css-extract-plugin/hmr/normalize-url.js +10 -6
  42. package/compiled/mini-css-extract-plugin/index.js +10669 -10348
  43. package/compiled/mini-css-extract-plugin/loader.js +159 -100
  44. package/compiled/mini-css-extract-plugin/package.json +1 -1
  45. package/compiled/mini-css-extract-plugin/utils.js +88 -44
  46. package/compiled/postcss-loader/index.js +1 -1
  47. package/compiled/postcss-loader/package.json +1 -1
  48. package/compiled/sass-loader/index.js +1 -1
  49. package/compiled/sass-loader/package.json +1 -1
  50. package/compiled/sass-loader/sass.default.dart.js +4 -0
  51. package/compiled/schema-utils/ajv/dist/ajv.d.ts +16 -0
  52. package/compiled/schema-utils/ajv/dist/compile/codegen/code.d.ts +39 -0
  53. package/compiled/schema-utils/ajv/dist/compile/codegen/index.d.ts +79 -0
  54. package/compiled/schema-utils/ajv/dist/compile/codegen/scope.d.ts +79 -0
  55. package/compiled/schema-utils/ajv/dist/compile/errors.d.ts +13 -0
  56. package/compiled/schema-utils/ajv/dist/compile/index.d.ts +80 -0
  57. package/compiled/schema-utils/ajv/dist/compile/ref_error.d.ts +5 -0
  58. package/compiled/schema-utils/ajv/dist/compile/resolve.d.ts +12 -0
  59. package/compiled/schema-utils/ajv/dist/compile/rules.d.ts +28 -0
  60. package/compiled/schema-utils/ajv/dist/compile/util.d.ts +40 -0
  61. package/compiled/schema-utils/ajv/dist/compile/validate/index.d.ts +42 -0
  62. package/compiled/schema-utils/ajv/dist/compile/validate/subschema.d.ts +47 -0
  63. package/compiled/schema-utils/ajv/dist/core.d.ts +171 -0
  64. package/compiled/schema-utils/ajv/dist/runtime/validation_error.d.ts +7 -0
  65. package/compiled/schema-utils/ajv/dist/types/index.d.ts +177 -0
  66. package/compiled/schema-utils/ajv/dist/types/json-schema.d.ts +124 -0
  67. package/compiled/schema-utils/ajv/dist/types/jtd-schema.d.ts +168 -0
  68. package/compiled/schema-utils/declarations/validate.d.ts +4 -4
  69. package/compiled/schema-utils/index.js +8 -2
  70. package/compiled/schema-utils/uri-js/dist/es5/uri.all.d.ts +59 -0
  71. package/compiled/style-loader/index.js +1 -1
  72. package/compiled/stylus-loader/LICENSE +20 -0
  73. package/compiled/stylus-loader/index.js +44 -0
  74. package/compiled/stylus-loader/package.json +1 -0
  75. package/compiled/terser/@jridgewell/gen-mapping/dist/types/gen-mapping.d.ts +90 -0
  76. package/compiled/terser/@jridgewell/gen-mapping/dist/types/sourcemap-segment.d.ts +12 -0
  77. package/compiled/terser/@jridgewell/gen-mapping/dist/types/types.d.ts +35 -0
  78. package/compiled/terser/@jridgewell/source-map/dist/types/source-map.d.ts +25 -0
  79. package/compiled/terser/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  80. package/compiled/terser/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
  81. package/compiled/terser/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
  82. package/compiled/terser/index.js +1 -1
  83. package/compiled/terser/package.json +1 -1
  84. package/compiled/terser/tools/terser.d.ts +6 -3
  85. package/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
  86. package/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +74 -0
  87. package/compiled/terser-webpack-plugin/@jridgewell/trace-mapping/dist/types/types.d.ts +92 -0
  88. package/compiled/terser-webpack-plugin/index.js +1390 -3693
  89. package/compiled/terser-webpack-plugin/jest-worker/build/types.d.ts +1 -0
  90. package/compiled/terser-webpack-plugin/minify.js +10 -3
  91. package/compiled/terser-webpack-plugin/package.json +1 -1
  92. package/compiled/terser-webpack-plugin/types/index.d.ts +186 -152
  93. package/compiled/terser-webpack-plugin/types/minify.d.ts +17 -0
  94. package/compiled/terser-webpack-plugin/types/utils.d.ts +20 -24
  95. package/compiled/terser-webpack-plugin/utils.js +153 -34
  96. package/compiled/webpack/BasicEffectRulePlugin.js +1 -0
  97. package/compiled/webpack/BasicEvaluatedExpression.js +1 -0
  98. package/compiled/webpack/BasicMatcherRulePlugin.js +1 -0
  99. package/compiled/webpack/ExternalsPlugin.js +1 -0
  100. package/compiled/webpack/FetchCompileAsyncWasmPlugin.js +1 -0
  101. package/compiled/webpack/FetchCompileWasmPlugin.js +1 -0
  102. package/compiled/webpack/HotModuleReplacement.runtime.js +29 -14
  103. package/compiled/webpack/JavascriptHotModuleReplacement.runtime.js +4 -3
  104. package/compiled/webpack/LimitChunkCountPlugin.js +1 -0
  105. package/compiled/webpack/NodeTargetPlugin.js +1 -0
  106. package/compiled/webpack/NodeTemplatePlugin.js +1 -0
  107. package/compiled/webpack/ObjectMatcherRulePlugin.js +1 -0
  108. package/compiled/webpack/RuleSetCompiler.js +1 -0
  109. package/compiled/webpack/StringXor.js +1 -0
  110. package/compiled/webpack/UseEffectRulePlugin.js +1 -0
  111. package/compiled/webpack/WebWorkerTemplatePlugin.js +1 -0
  112. package/compiled/webpack/deepImports.json +15 -1
  113. package/compiled/webpack/index.js +26404 -10329
  114. package/compiled/webpack/json-schema/index.d.ts +8 -1
  115. package/compiled/webpack/lazy-compilation-node.js +10 -0
  116. package/compiled/webpack/lazy-compilation-web.js +9 -0
  117. package/compiled/webpack/types.d.ts +823 -287
  118. package/compiled/webpack-5-chain/index.js +1 -1
  119. package/compiled/webpack-5-chain/package.json +1 -1
  120. package/compiled/webpack-5-chain/types/index.d.ts +76 -20
  121. package/compiled/webpack-bundle-analyzer/index.js +7 -6
  122. package/compiled/webpack-bundle-analyzer/package.json +1 -1
  123. package/compiled/webpack-bundle-analyzer/public/viewer.js +2 -2
  124. package/compiled/webpack-bundle-analyzer/public/viewer.js.map +1 -1
  125. package/compiled/webpack-dev-middleware/index.js +12 -5
  126. package/compiled/webpack-dev-middleware/package.json +1 -1
  127. package/compiled/{tapable → webpack-manifest-plugin}/LICENSE +2 -2
  128. package/compiled/webpack-manifest-plugin/index.js +1 -0
  129. package/compiled/webpack-manifest-plugin/package.json +1 -0
  130. package/compiled/webpack-sources/index.js +1 -1
  131. package/compiled/{express → webpackbar}/LICENSE +1 -5
  132. package/compiled/webpackbar/dist/index.d.ts +121 -0
  133. package/compiled/webpackbar/index.js +7 -0
  134. package/compiled/webpackbar/package.json +1 -0
  135. package/compiled/ws/LICENSE +13 -12
  136. package/compiled/ws/index.d.ts +74 -35
  137. package/compiled/ws/index.js +1 -1
  138. package/compiled/ws/package.json +1 -1
  139. package/dist/build.d.ts +8 -3
  140. package/dist/build.js +147 -68
  141. package/dist/cli.d.ts +0 -1
  142. package/dist/cli.js +84 -81
  143. package/dist/config/_sampleFeature.js +33 -20
  144. package/dist/config/assetRules.js +46 -55
  145. package/dist/config/bundleAnalyzerPlugin.js +41 -28
  146. package/dist/config/compressPlugin.js +125 -74
  147. package/dist/config/config.d.ts +11 -2
  148. package/dist/config/config.js +235 -172
  149. package/dist/config/copyPlugin.js +61 -47
  150. package/dist/config/cssRules.js +162 -95
  151. package/dist/config/definePlugin.d.ts +2 -0
  152. package/dist/config/definePlugin.js +59 -39
  153. package/dist/config/detectCssModulesInDependence.d.ts +10 -0
  154. package/dist/config/detectCssModulesInDependence.js +151 -0
  155. package/dist/config/detectDeadCode.d.ts +12 -0
  156. package/dist/config/detectDeadCode.js +191 -0
  157. package/dist/config/detectDeadCodePlugin.d.ts +9 -0
  158. package/dist/config/detectDeadCodePlugin.js +82 -0
  159. package/dist/config/fastRefreshPlugin.js +46 -31
  160. package/dist/config/forkTSCheckerPlugin.d.ts +11 -0
  161. package/dist/config/forkTSCheckerPlugin.js +49 -0
  162. package/dist/config/harmonyLinkingErrorPlugin.d.ts +6 -0
  163. package/dist/config/harmonyLinkingErrorPlugin.js +53 -0
  164. package/dist/config/ignorePlugin.js +38 -25
  165. package/dist/config/javaScriptRules.d.ts +2 -0
  166. package/dist/config/javaScriptRules.js +186 -150
  167. package/dist/config/manifestPlugin.d.ts +11 -0
  168. package/dist/config/manifestPlugin.js +40 -0
  169. package/dist/config/miniCSSExtractPlugin.d.ts +1 -0
  170. package/dist/config/miniCSSExtractPlugin.js +52 -31
  171. package/dist/config/nodePolyfill.js +49 -32
  172. package/dist/config/nodePrefixPlugin.d.ts +11 -0
  173. package/dist/config/nodePrefixPlugin.js +38 -0
  174. package/dist/config/progressPlugin.js +50 -24
  175. package/dist/config/purgecssWebpackPlugin.js +41 -30
  176. package/dist/config/speedMeasureWebpackPlugin.js +56 -31
  177. package/dist/config/ssrPlugin.d.ts +11 -0
  178. package/dist/config/ssrPlugin.js +98 -0
  179. package/dist/config/svgRules.d.ts +1 -0
  180. package/dist/config/svgRules.js +68 -54
  181. package/dist/constants.d.ts +4 -0
  182. package/dist/constants.js +59 -15
  183. package/dist/dev.d.ts +23 -3
  184. package/dist/dev.js +198 -81
  185. package/dist/index.d.ts +6 -2
  186. package/dist/index.js +31 -15
  187. package/dist/loader/svgr.d.ts +4 -0
  188. package/dist/loader/svgr.js +84 -0
  189. package/dist/loader/swc.d.ts +4 -0
  190. package/dist/loader/swc.js +149 -0
  191. package/dist/parcelCSS.d.ts +2 -0
  192. package/dist/parcelCSS.js +39 -0
  193. package/dist/plugins/EsbuildMinifyFix.d.ts +8 -0
  194. package/dist/plugins/EsbuildMinifyFix.js +136 -0
  195. package/dist/plugins/ProgressPlugin.js +68 -43
  196. package/dist/plugins/RuntimePublicPathPlugin.d.ts +4 -0
  197. package/dist/plugins/RuntimePublicPathPlugin.js +45 -0
  198. package/dist/plugins/_SamplePlugin.d.ts +1 -1
  199. package/dist/plugins/_SamplePlugin.js +37 -14
  200. package/dist/requireHook.js +44 -27
  201. package/dist/schema.d.ts +4 -3
  202. package/dist/schema.js +175 -69
  203. package/dist/server/server.d.ts +4 -3
  204. package/dist/server/server.js +219 -154
  205. package/dist/server/ws.d.ts +8 -3
  206. package/dist/server/ws.js +72 -38
  207. package/dist/swcPlugins/autoCSSModules.d.ts +11 -2
  208. package/dist/swcPlugins/autoCSSModules.js +60 -32
  209. package/dist/swcPlugins/changeImportFromString.d.ts +2 -0
  210. package/dist/swcPlugins/changeImportFromString.js +32 -0
  211. package/dist/swcPlugins/lockCoreJS.d.ts +6 -0
  212. package/dist/swcPlugins/lockCoreJS.js +56 -0
  213. package/dist/types.d.ts +53 -9
  214. package/dist/types.js +61 -29
  215. package/dist/utils/browsersList.js +31 -8
  216. package/dist/utils/depMatch.js +65 -39
  217. package/dist/utils/formatWebpackMessages.js +119 -91
  218. package/dist/utils/getEsBuildTarget.d.ts +7 -0
  219. package/dist/utils/getEsBuildTarget.js +46 -0
  220. package/dist/utils/pkgUpContainsName.d.ts +1 -0
  221. package/dist/utils/pkgUpContainsName.js +50 -0
  222. package/package.json +89 -81
  223. package/compiled/@svgr/webpack/.svgo.yml +0 -75
  224. package/compiled/@svgr/webpack/LICENSE +0 -7
  225. package/compiled/@svgr/webpack/index.js +0 -343
  226. package/compiled/@svgr/webpack/package.json +0 -1
  227. package/compiled/css-loader/api.js +0 -102
  228. package/compiled/css-loader/getUrl.js +0 -29
  229. package/compiled/css-loader/index.js +0 -2
  230. package/compiled/css-loader/noSourceMaps.js +0 -5
  231. package/compiled/css-loader/package.json +0 -1
  232. package/compiled/css-loader/sourceMaps.js +0 -22
  233. package/compiled/express/body-parser/index.d.ts +0 -104
  234. package/compiled/express/connect/index.d.ts +0 -93
  235. package/compiled/express/express-serve-static-core/index.d.ts +0 -1252
  236. package/compiled/express/index.d.ts +0 -133
  237. package/compiled/express/index.js +0 -338
  238. package/compiled/express/mime/index.d.ts +0 -35
  239. package/compiled/express/package.json +0 -1
  240. package/compiled/express/qs/index.d.ts +0 -62
  241. package/compiled/express/range-parser/index.d.ts +0 -35
  242. package/compiled/express/serve-static/index.d.ts +0 -108
  243. package/compiled/http-proxy-middleware/LICENSE +0 -22
  244. package/compiled/http-proxy-middleware/dist/index.d.ts +0 -4
  245. package/compiled/http-proxy-middleware/dist/types.d.ts +0 -54
  246. package/compiled/http-proxy-middleware/http-proxy/index.d.ts +0 -226
  247. package/compiled/http-proxy-middleware/index.js +0 -66
  248. package/compiled/http-proxy-middleware/package.json +0 -1
  249. package/compiled/less/index.js +0 -31
  250. package/compiled/less/package.json +0 -1
  251. package/compiled/react-refresh/index.js +0 -19
  252. package/compiled/swc-loader/LICENSE +0 -25
  253. package/compiled/swc-loader/index.js +0 -1
  254. package/compiled/swc-loader/package.json +0 -1
  255. package/compiled/tapable/index.js +0 -1
  256. package/compiled/tapable/package.json +0 -1
  257. package/compiled/tapable/tapable.d.ts +0 -116
  258. package/dist/build.d.ts.map +0 -1
  259. package/dist/cli.d.ts.map +0 -1
  260. package/dist/client/client.d.ts.map +0 -1
  261. package/dist/client/client.js +0 -239
  262. package/dist/config/_sampleFeature.d.ts.map +0 -1
  263. package/dist/config/assetRules.d.ts.map +0 -1
  264. package/dist/config/bundleAnalyzerPlugin.d.ts.map +0 -1
  265. package/dist/config/compressPlugin.d.ts.map +0 -1
  266. package/dist/config/config.d.ts.map +0 -1
  267. package/dist/config/copyPlugin.d.ts.map +0 -1
  268. package/dist/config/cssRules.d.ts.map +0 -1
  269. package/dist/config/definePlugin.d.ts.map +0 -1
  270. package/dist/config/fastRefreshPlugin.d.ts.map +0 -1
  271. package/dist/config/ignorePlugin.d.ts.map +0 -1
  272. package/dist/config/javaScriptRules.d.ts.map +0 -1
  273. package/dist/config/miniCSSExtractPlugin.d.ts.map +0 -1
  274. package/dist/config/nodePolyfill.d.ts.map +0 -1
  275. package/dist/config/progressPlugin.d.ts.map +0 -1
  276. package/dist/config/purgecssWebpackPlugin.d.ts.map +0 -1
  277. package/dist/config/speedMeasureWebpackPlugin.d.ts.map +0 -1
  278. package/dist/config/svgRules.d.ts.map +0 -1
  279. package/dist/constants.d.ts.map +0 -1
  280. package/dist/dev.d.ts.map +0 -1
  281. package/dist/index.d.ts.map +0 -1
  282. package/dist/plugins/ESBuildCSSMinifyPlugin.d.ts +0 -11
  283. package/dist/plugins/ESBuildCSSMinifyPlugin.d.ts.map +0 -1
  284. package/dist/plugins/ESBuildCSSMinifyPlugin.js +0 -65
  285. package/dist/plugins/ProgressPlugin.d.ts.map +0 -1
  286. package/dist/plugins/_SamplePlugin.d.ts.map +0 -1
  287. package/dist/requireHook.d.ts.map +0 -1
  288. package/dist/schema.d.ts.map +0 -1
  289. package/dist/server/server.d.ts.map +0 -1
  290. package/dist/server/ws.d.ts.map +0 -1
  291. package/dist/swcPlugins/autoCSSModules.d.ts.map +0 -1
  292. package/dist/types.d.ts.map +0 -1
  293. package/dist/utils/browsersList.d.ts.map +0 -1
  294. package/dist/utils/depMatch.d.ts.map +0 -1
  295. package/dist/utils/formatWebpackMessages.d.ts.map +0 -1
  296. /package/{dist → client}/client/client.d.ts +0 -0
  297. /package/compiled/{css-loader → file-loader}/LICENSE +0 -0
@@ -4,6 +4,7 @@
4
4
  * Run `yarn special-lint-fix` to update
5
5
  */
6
6
 
7
+ import { Buffer } from 'buffer';
7
8
  import {
8
9
  ArrayExpression,
9
10
  ArrayPattern,
@@ -63,6 +64,7 @@ import {
63
64
  SimpleCallExpression,
64
65
  SimpleLiteral,
65
66
  SpreadElement,
67
+ StaticBlock,
66
68
  Super,
67
69
  SwitchCase,
68
70
  SwitchStatement,
@@ -215,6 +217,7 @@ declare interface Argument {
215
217
  }
216
218
  declare interface ArgumentConfig {
217
219
  description: string;
220
+ negatedDescription?: string;
218
221
  path: string;
219
222
  multiple: boolean;
220
223
  type: "string" | "number" | "boolean" | "path" | "enum" | "RegExp" | "reset";
@@ -320,6 +323,11 @@ declare interface AssetResourceGeneratorOptions {
320
323
  */
321
324
  filename?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
322
325
 
326
+ /**
327
+ * Emit the asset in the specified folder relative to 'output.path'. This should only be needed when custom 'publicPath' is specified to match the folder structure there.
328
+ */
329
+ outputPath?: string | ((pathData: PathData, assetInfo?: AssetInfo) => string);
330
+
323
331
  /**
324
332
  * The 'publicPath' specifies the public URL address of the output files when referenced in a browser.
325
333
  */
@@ -422,6 +430,11 @@ declare interface BannerPluginOptions {
422
430
  */
423
431
  exclude?: string | RegExp | Rule[];
424
432
 
433
+ /**
434
+ * If true, banner will be placed at the end of the output.
435
+ */
436
+ footer?: boolean;
437
+
425
438
  /**
426
439
  * Include all modules matching any of these conditions.
427
440
  */
@@ -466,9 +479,10 @@ declare abstract class BasicEvaluatedExpression {
466
479
  prefix?: BasicEvaluatedExpression;
467
480
  postfix?: BasicEvaluatedExpression;
468
481
  wrappedInnerExpressions: any;
469
- identifier?: string;
482
+ identifier?: string | VariableInfoInterface;
470
483
  rootInfo: VariableInfoInterface;
471
484
  getMembers: () => string[];
485
+ getMembersOptionals: () => boolean[];
472
486
  expression: NodeEstreeIndex;
473
487
  isUnknown(): boolean;
474
488
  isNull(): boolean;
@@ -520,7 +534,8 @@ declare abstract class BasicEvaluatedExpression {
520
534
  setIdentifier(
521
535
  identifier?: any,
522
536
  rootInfo?: any,
523
- getMembers?: any
537
+ getMembers?: any,
538
+ getMembersOptionals?: any
524
539
  ): BasicEvaluatedExpression;
525
540
  setWrapped(
526
541
  prefix?: any,
@@ -656,7 +671,7 @@ declare interface CacheGroupsContext {
656
671
  moduleGraph: ModuleGraph;
657
672
  chunkGraph: ChunkGraph;
658
673
  }
659
- type CacheOptionsNormalized = false | MemoryCacheOptions | FileCacheOptions;
674
+ type CacheOptionsNormalized = false | FileCacheOptions | MemoryCacheOptions;
660
675
  declare class CachedSource extends Source {
661
676
  constructor(source: Source);
662
677
  constructor(source: Source | (() => Source), cachedData?: any);
@@ -673,25 +688,26 @@ declare interface CallExpressionInfo {
673
688
  getCalleeMembers: () => string[];
674
689
  name: string;
675
690
  getMembers: () => string[];
691
+ getMembersOptionals: () => boolean[];
676
692
  }
677
693
  declare interface CallbackAsyncQueue<T> {
678
- (err?: WebpackError, result?: T): any;
694
+ (err?: null | WebpackError, result?: T): any;
679
695
  }
680
696
  declare interface CallbackCache<T> {
681
- (err?: WebpackError, result?: T): void;
697
+ (err?: null | WebpackError, result?: T): void;
682
698
  }
683
699
  declare interface CallbackFunction<T> {
684
- (err?: Error, result?: T): any;
700
+ (err?: null | Error, result?: T): any;
685
701
  }
686
702
  declare interface CallbackNormalErrorCache<T> {
687
- (err?: Error, result?: T): void;
703
+ (err?: null | Error, result?: T): void;
688
704
  }
689
705
  declare interface CallbackWebpack<T> {
690
706
  (err?: Error, stats?: T): void;
691
707
  }
692
708
  type Cell<T> = undefined | T;
693
709
  declare class Chunk {
694
- constructor(name?: string);
710
+ constructor(name?: string, backCompat?: boolean);
695
711
  id: null | string | number;
696
712
  ids: null | (string | number)[];
697
713
  debugId: number;
@@ -702,6 +718,10 @@ declare class Chunk {
702
718
  | null
703
719
  | string
704
720
  | ((arg0: PathData, arg1?: AssetInfo) => string);
721
+ cssFilenameTemplate:
722
+ | null
723
+ | string
724
+ | ((arg0: PathData, arg1?: AssetInfo) => string);
705
725
  runtime: RuntimeSpec;
706
726
  files: Set<string>;
707
727
  auxiliaryFiles: Set<string>;
@@ -711,12 +731,12 @@ declare class Chunk {
711
731
  renderedHash?: string;
712
732
  chunkReason?: string;
713
733
  extraAsync: boolean;
714
- readonly entryModule?: Module;
734
+ get entryModule(): Module;
715
735
  hasEntryModule(): boolean;
716
736
  addModule(module: Module): boolean;
717
737
  removeModule(module: Module): void;
718
738
  getNumberOfModules(): number;
719
- readonly modulesIterable: Iterable<Module>;
739
+ get modulesIterable(): Iterable<Module>;
720
740
  compareTo(otherChunk: Chunk): 0 | 1 | -1;
721
741
  containsModule(module: Module): boolean;
722
742
  getModules(): Module[];
@@ -742,7 +762,7 @@ declare class Chunk {
742
762
  removeGroup(chunkGroup: ChunkGroup): void;
743
763
  isInGroup(chunkGroup: ChunkGroup): boolean;
744
764
  getNumberOfGroups(): number;
745
- readonly groupsIterable: Iterable<ChunkGroup>;
765
+ get groupsIterable(): Iterable<ChunkGroup>;
746
766
  disconnectFromGroups(): void;
747
767
  split(newChunk: Chunk): void;
748
768
  updateHash(hash: Hash, chunkGraph: ChunkGraph): void;
@@ -797,6 +817,13 @@ declare class ChunkGraph {
797
817
  chunk: Chunk,
798
818
  sourceType: string
799
819
  ): undefined | Iterable<Module>;
820
+ setChunkModuleSourceTypes(
821
+ chunk: Chunk,
822
+ module: Module,
823
+ sourceTypes: Set<string>
824
+ ): void;
825
+ getChunkModuleSourceTypes(chunk: Chunk, module: Module): Set<string>;
826
+ getModuleSourceTypes(module: Module): Set<string>;
800
827
  getOrderedChunkModulesIterable(
801
828
  chunk: Chunk,
802
829
  comparator: (arg0: Module, arg1: Module) => 0 | 1 | -1
@@ -955,12 +982,12 @@ declare abstract class ChunkGroup {
955
982
  /**
956
983
  * get a uniqueId for ChunkGroup, made up of its member Chunk debugId's
957
984
  */
958
- readonly debugId: string;
985
+ get debugId(): string;
959
986
 
960
987
  /**
961
988
  * get a unique id for ChunkGroup, made up of its member Chunk id's
962
989
  */
963
- readonly id: string;
990
+ get id(): string;
964
991
 
965
992
  /**
966
993
  * Performs an unshift of a specific chunk
@@ -982,20 +1009,20 @@ declare abstract class ChunkGroup {
982
1009
  addChild(group: ChunkGroup): boolean;
983
1010
  getChildren(): ChunkGroup[];
984
1011
  getNumberOfChildren(): number;
985
- readonly childrenIterable: SortableSet<ChunkGroup>;
1012
+ get childrenIterable(): SortableSet<ChunkGroup>;
986
1013
  removeChild(group: ChunkGroup): boolean;
987
1014
  addParent(parentChunk: ChunkGroup): boolean;
988
1015
  getParents(): ChunkGroup[];
989
1016
  getNumberOfParents(): number;
990
1017
  hasParent(parent: ChunkGroup): boolean;
991
- readonly parentsIterable: SortableSet<ChunkGroup>;
1018
+ get parentsIterable(): SortableSet<ChunkGroup>;
992
1019
  removeParent(chunkGroup: ChunkGroup): boolean;
993
1020
  addAsyncEntrypoint(entrypoint: Entrypoint): boolean;
994
- readonly asyncEntrypointsIterable: SortableSet<ChunkGroup>;
1021
+ get asyncEntrypointsIterable(): SortableSet<ChunkGroup>;
995
1022
  getBlocks(): any[];
996
1023
  getNumberOfBlocks(): number;
997
1024
  hasBlock(block?: any): boolean;
998
- readonly blocksIterable: Iterable<AsyncDependenciesBlock>;
1025
+ get blocksIterable(): Iterable<AsyncDependenciesBlock>;
999
1026
  addBlock(block: AsyncDependenciesBlock): boolean;
1000
1027
  addOrigin(module: Module, loc: DependencyLocation, request: string): void;
1001
1028
  getFiles(): string[];
@@ -1037,6 +1064,11 @@ declare abstract class ChunkGroup {
1037
1064
  }
1038
1065
  type ChunkGroupOptions = RawChunkGroupOptions & { name?: string };
1039
1066
  declare interface ChunkHashContext {
1067
+ /**
1068
+ * results of code generation
1069
+ */
1070
+ codeGenerationResults: CodeGenerationResults;
1071
+
1040
1072
  /**
1041
1073
  * the runtime template
1042
1074
  */
@@ -1143,7 +1175,7 @@ declare abstract class ChunkTemplate {
1143
1175
  hash: { tap: (options?: any, fn?: any) => void };
1144
1176
  hashForChunk: { tap: (options?: any, fn?: any) => void };
1145
1177
  }>;
1146
- readonly outputOptions: Output;
1178
+ get outputOptions(): Output;
1147
1179
  }
1148
1180
 
1149
1181
  /**
@@ -1217,6 +1249,21 @@ declare interface CodeGenerationContext {
1217
1249
  * when in concatenated module, information about other concatenated modules
1218
1250
  */
1219
1251
  concatenationScope?: ConcatenationScope;
1252
+
1253
+ /**
1254
+ * code generation results of other modules (need to have a codeGenerationDependency to use that)
1255
+ */
1256
+ codeGenerationResults: CodeGenerationResults;
1257
+
1258
+ /**
1259
+ * the compilation
1260
+ */
1261
+ compilation?: Compilation;
1262
+
1263
+ /**
1264
+ * source types
1265
+ */
1266
+ sourceTypes?: ReadonlySet<string>;
1220
1267
  }
1221
1268
  declare interface CodeGenerationResult {
1222
1269
  /**
@@ -1393,22 +1440,22 @@ declare class Compilation {
1393
1440
  additionalChunkAssets: FakeHook<
1394
1441
  Pick<
1395
1442
  AsyncSeriesHook<[Set<Chunk>]>,
1396
- "tap" | "tapAsync" | "tapPromise" | "name"
1443
+ "name" | "tap" | "tapAsync" | "tapPromise"
1397
1444
  >
1398
1445
  >;
1399
1446
  additionalAssets: FakeHook<
1400
- Pick<AsyncSeriesHook<[]>, "tap" | "tapAsync" | "tapPromise" | "name">
1447
+ Pick<AsyncSeriesHook<[]>, "name" | "tap" | "tapAsync" | "tapPromise">
1401
1448
  >;
1402
1449
  optimizeChunkAssets: FakeHook<
1403
1450
  Pick<
1404
1451
  AsyncSeriesHook<[Set<Chunk>]>,
1405
- "tap" | "tapAsync" | "tapPromise" | "name"
1452
+ "name" | "tap" | "tapAsync" | "tapPromise"
1406
1453
  >
1407
1454
  >;
1408
1455
  afterOptimizeChunkAssets: FakeHook<
1409
1456
  Pick<
1410
1457
  AsyncSeriesHook<[Set<Chunk>]>,
1411
- "tap" | "tapAsync" | "tapPromise" | "name"
1458
+ "name" | "tap" | "tapAsync" | "tapPromise"
1412
1459
  >
1413
1460
  >;
1414
1461
  optimizeAssets: AsyncSeriesHook<
@@ -1445,7 +1492,7 @@ declare class Compilation {
1445
1492
  >;
1446
1493
  statsFactory: SyncHook<[StatsFactory, NormalizedStatsOptions]>;
1447
1494
  statsPrinter: SyncHook<[StatsPrinter, NormalizedStatsOptions]>;
1448
- readonly normalModuleLoader: SyncHook<[object, NormalModule]>;
1495
+ get normalModuleLoader(): SyncHook<[object, NormalModule]>;
1449
1496
  }>;
1450
1497
  name?: string;
1451
1498
  startTime: any;
@@ -1532,7 +1579,7 @@ declare class Compilation {
1532
1579
  getLogger(name: string | (() => string)): WebpackLogger;
1533
1580
  addModule(
1534
1581
  module: Module,
1535
- callback: (err?: WebpackError, result?: Module) => void
1582
+ callback: (err?: null | WebpackError, result?: Module) => void
1536
1583
  ): void;
1537
1584
 
1538
1585
  /**
@@ -1550,21 +1597,21 @@ declare class Compilation {
1550
1597
  */
1551
1598
  buildModule(
1552
1599
  module: Module,
1553
- callback: (err?: WebpackError, result?: Module) => void
1600
+ callback: (err?: null | WebpackError, result?: Module) => void
1554
1601
  ): void;
1555
1602
  processModuleDependencies(
1556
1603
  module: Module,
1557
- callback: (err?: WebpackError, result?: Module) => void
1604
+ callback: (err?: null | WebpackError, result?: Module) => void
1558
1605
  ): void;
1559
1606
  processModuleDependenciesNonRecursive(module: Module): void;
1560
1607
  handleModuleCreation(
1561
1608
  __0: HandleModuleCreationOptions,
1562
- callback: (err?: WebpackError, result?: Module) => void
1609
+ callback: (err?: null | WebpackError, result?: Module) => void
1563
1610
  ): void;
1564
1611
  addModuleChain(
1565
1612
  context: string,
1566
1613
  dependency: Dependency,
1567
- callback: (err?: WebpackError, result?: Module) => void
1614
+ callback: (err?: null | WebpackError, result?: Module) => void
1568
1615
  ): void;
1569
1616
  addModuleTree(
1570
1617
  __0: {
@@ -1581,27 +1628,27 @@ declare class Compilation {
1581
1628
  */
1582
1629
  contextInfo?: Partial<ModuleFactoryCreateDataContextInfo>;
1583
1630
  },
1584
- callback: (err?: WebpackError, result?: Module) => void
1631
+ callback: (err?: null | WebpackError, result?: Module) => void
1585
1632
  ): void;
1586
1633
  addEntry(
1587
1634
  context: string,
1588
1635
  entry: Dependency,
1589
1636
  optionsOrName: string | EntryOptions,
1590
- callback: (err?: WebpackError, result?: Module) => void
1637
+ callback: (err?: null | WebpackError, result?: Module) => void
1591
1638
  ): void;
1592
1639
  addInclude(
1593
1640
  context: string,
1594
1641
  dependency: Dependency,
1595
1642
  options: EntryOptions,
1596
- callback: (err?: WebpackError, result?: Module) => void
1643
+ callback: (err?: null | WebpackError, result?: Module) => void
1597
1644
  ): void;
1598
1645
  rebuildModule(
1599
1646
  module: Module,
1600
- callback: (err?: WebpackError, result?: Module) => void
1647
+ callback: (err?: null | WebpackError, result?: Module) => void
1601
1648
  ): void;
1602
1649
  finish(callback?: any): void;
1603
1650
  unseal(): void;
1604
- seal(callback: (err?: WebpackError) => void): void;
1651
+ seal(callback: (err?: null | WebpackError) => void): void;
1605
1652
  reportDependencyErrorsAndWarnings(
1606
1653
  module: Module,
1607
1654
  blocks: DependenciesBlock[]
@@ -1634,11 +1681,15 @@ declare class Compilation {
1634
1681
  module: RuntimeModule,
1635
1682
  chunkGraph?: ChunkGraph
1636
1683
  ): void;
1684
+
1685
+ /**
1686
+ * If `module` is passed, `loc` and `request` must also be passed.
1687
+ */
1637
1688
  addChunkInGroup(
1638
1689
  groupOptions: string | ChunkGroupOptions,
1639
- module: Module,
1640
- loc: DependencyLocation,
1641
- request: string
1690
+ module?: Module,
1691
+ loc?: SyntheticDependencyLocation | RealDependencyLocation,
1692
+ request?: string
1642
1693
  ): ChunkGroup;
1643
1694
  addAsyncEntrypoint(
1644
1695
  options: EntryOptions,
@@ -1689,7 +1740,7 @@ declare class Compilation {
1689
1740
  clearAssets(): void;
1690
1741
  createModuleAssets(): void;
1691
1742
  getRenderManifest(options: RenderManifestOptions): RenderManifestEntry[];
1692
- createChunkAssets(callback: (err?: WebpackError) => void): void;
1743
+ createChunkAssets(callback: (err?: null | WebpackError) => void): void;
1693
1744
  getPath(
1694
1745
  filename: string | ((arg0: PathData, arg1?: AssetInfo) => string),
1695
1746
  data?: PathData
@@ -1725,17 +1776,20 @@ declare class Compilation {
1725
1776
  executeModule(
1726
1777
  module: Module,
1727
1778
  options: ExecuteModuleOptions,
1728
- callback: (err?: WebpackError, result?: ExecuteModuleResult) => void
1779
+ callback: (err?: null | WebpackError, result?: ExecuteModuleResult) => void
1729
1780
  ): void;
1730
1781
  checkConstraints(): void;
1731
1782
  factorizeModule: {
1732
1783
  (
1733
1784
  options: FactorizeModuleOptions & { factoryResult?: false },
1734
- callback: (err?: WebpackError, result?: Module) => void
1785
+ callback: (err?: null | WebpackError, result?: Module) => void
1735
1786
  ): void;
1736
1787
  (
1737
1788
  options: FactorizeModuleOptions & { factoryResult: true },
1738
- callback: (err?: WebpackError, result?: ModuleFactoryResult) => void
1789
+ callback: (
1790
+ err?: null | WebpackError,
1791
+ result?: ModuleFactoryResult
1792
+ ) => void
1739
1793
  ): void;
1740
1794
  };
1741
1795
 
@@ -1857,7 +1911,7 @@ declare interface CompilationParams {
1857
1911
  contextModuleFactory: ContextModuleFactory;
1858
1912
  }
1859
1913
  declare class Compiler {
1860
- constructor(context: string);
1914
+ constructor(context: string, options?: WebpackOptionsNormalized);
1861
1915
  hooks: Readonly<{
1862
1916
  initialize: SyncHook<[]>;
1863
1917
  shouldEmit: SyncBailHook<[Compilation], boolean>;
@@ -1878,6 +1932,8 @@ declare class Compiler {
1878
1932
  make: AsyncParallelHook<[Compilation]>;
1879
1933
  finishMake: AsyncParallelHook<[Compilation]>;
1880
1934
  afterCompile: AsyncSeriesHook<[Compilation]>;
1935
+ readRecords: AsyncSeriesHook<[]>;
1936
+ emitRecords: AsyncSeriesHook<[]>;
1881
1937
  watchRun: AsyncSeriesHook<[Compiler]>;
1882
1938
  failed: SyncHook<[Error]>;
1883
1939
  invalid: SyncHook<[null | string, number]>;
@@ -1933,7 +1989,11 @@ declare class Compiler {
1933
1989
  watch(watchOptions: WatchOptions, handler: CallbackFunction<Stats>): Watching;
1934
1990
  run(callback: CallbackFunction<Stats>): void;
1935
1991
  runAsChild(
1936
- callback: (err?: Error, entries?: Chunk[], compilation?: Compilation) => any
1992
+ callback: (
1993
+ err?: null | Error,
1994
+ entries?: Chunk[],
1995
+ compilation?: Compilation
1996
+ ) => any
1937
1997
  ): void;
1938
1998
  purgeInputFileSystem(): void;
1939
1999
  emitAssets(compilation: Compilation, callback: CallbackFunction<void>): void;
@@ -2028,7 +2088,7 @@ declare interface Configuration {
2028
2088
  /**
2029
2089
  * Cache generated modules and chunks to improve performance for multiple incremental builds.
2030
2090
  */
2031
- cache?: boolean | MemoryCacheOptions | FileCacheOptions;
2091
+ cache?: boolean | FileCacheOptions | MemoryCacheOptions;
2032
2092
 
2033
2093
  /**
2034
2094
  * The base directory (absolute path!) for resolving the `entry` option. If `output.pathinfo` is set, the included pathinfo is shortened to this directory.
@@ -2085,6 +2145,7 @@ declare interface Configuration {
2085
2145
  * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
2086
2146
  */
2087
2147
  externalsType?:
2148
+ | "import"
2088
2149
  | "var"
2089
2150
  | "module"
2090
2151
  | "assign"
@@ -2095,6 +2156,7 @@ declare interface Configuration {
2095
2156
  | "commonjs"
2096
2157
  | "commonjs2"
2097
2158
  | "commonjs-module"
2159
+ | "commonjs-static"
2098
2160
  | "amd"
2099
2161
  | "amd-require"
2100
2162
  | "umd"
@@ -2102,7 +2164,6 @@ declare interface Configuration {
2102
2164
  | "jsonp"
2103
2165
  | "system"
2104
2166
  | "promise"
2105
- | "import"
2106
2167
  | "script"
2107
2168
  | "node-commonjs";
2108
2169
 
@@ -2141,7 +2202,7 @@ declare interface Configuration {
2141
2202
  /**
2142
2203
  * Enable production optimizations or development hints.
2143
2204
  */
2144
- mode?: "development" | "production" | "none";
2205
+ mode?: "none" | "development" | "production";
2145
2206
 
2146
2207
  /**
2147
2208
  * Options affecting the normal modules (`NormalModuleFactory`).
@@ -2226,15 +2287,15 @@ declare interface Configuration {
2226
2287
  */
2227
2288
  stats?:
2228
2289
  | boolean
2290
+ | StatsOptions
2229
2291
  | "none"
2292
+ | "verbose"
2230
2293
  | "summary"
2231
2294
  | "errors-only"
2232
2295
  | "errors-warnings"
2233
2296
  | "minimal"
2234
2297
  | "normal"
2235
- | "detailed"
2236
- | "verbose"
2237
- | StatsOptions;
2298
+ | "detailed";
2238
2299
 
2239
2300
  /**
2240
2301
  * Environment to build for. An array of environments to build for all of them when possible.
@@ -2418,7 +2479,7 @@ declare interface ContainerReferencePluginOptions {
2418
2479
  shareScope?: string;
2419
2480
  }
2420
2481
  declare abstract class ContextElementDependency extends ModuleDependency {
2421
- referencedExports: any;
2482
+ referencedExports?: string[][];
2422
2483
  }
2423
2484
  declare class ContextExclusionPlugin {
2424
2485
  constructor(negativeMatcher: RegExp);
@@ -2441,12 +2502,12 @@ declare interface ContextHash {
2441
2502
  symlinks?: Set<string>;
2442
2503
  }
2443
2504
  type ContextMode =
2444
- | "sync"
2445
- | "eager"
2446
2505
  | "weak"
2447
- | "async-weak"
2506
+ | "eager"
2448
2507
  | "lazy"
2449
- | "lazy-once";
2508
+ | "lazy-once"
2509
+ | "sync"
2510
+ | "async-weak";
2450
2511
  declare abstract class ContextModuleFactory extends ModuleFactory {
2451
2512
  hooks: Readonly<{
2452
2513
  beforeResolve: AsyncSeriesWaterfallHook<[any]>;
@@ -2455,7 +2516,7 @@ declare abstract class ContextModuleFactory extends ModuleFactory {
2455
2516
  alternatives: FakeHook<
2456
2517
  Pick<
2457
2518
  AsyncSeriesWaterfallHook<[any[]]>,
2458
- "tap" | "tapAsync" | "tapPromise" | "name"
2519
+ "name" | "tap" | "tapAsync" | "tapPromise"
2459
2520
  >
2460
2521
  >;
2461
2522
  alternativeRequests: AsyncSeriesWaterfallHook<
@@ -2466,7 +2527,10 @@ declare abstract class ContextModuleFactory extends ModuleFactory {
2466
2527
  resolveDependencies(
2467
2528
  fs: InputFileSystem,
2468
2529
  options: ContextModuleOptions,
2469
- callback: (err?: Error, dependencies?: ContextElementDependency[]) => any
2530
+ callback: (
2531
+ err?: null | Error,
2532
+ dependencies?: ContextElementDependency[]
2533
+ ) => any
2470
2534
  ): void;
2471
2535
  }
2472
2536
 
@@ -2487,7 +2551,7 @@ declare interface ContextModuleOptions {
2487
2551
  * exports referenced from modules (won't be mangled)
2488
2552
  */
2489
2553
  referencedExports?: string[][];
2490
- resource: string;
2554
+ resource: string | false | string[];
2491
2555
  resourceQuery?: string;
2492
2556
  resourceFragment?: string;
2493
2557
  resolveOptions: any;
@@ -2516,6 +2580,16 @@ declare interface ContextTimestampAndHash {
2516
2580
  }
2517
2581
  type CreateStatsOptionsContext = KnownCreateStatsOptionsContext &
2518
2582
  Record<string, any>;
2583
+
2584
+ /**
2585
+ * Options for css handling.
2586
+ */
2587
+ declare interface CssExperimentOptions {
2588
+ /**
2589
+ * Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
2590
+ */
2591
+ exportsOnly?: boolean;
2592
+ }
2519
2593
  type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
2520
2594
  declare class DefinePlugin {
2521
2595
  /**
@@ -2579,9 +2653,16 @@ declare class Dependency {
2579
2653
  constructor();
2580
2654
  weak: boolean;
2581
2655
  optional: boolean;
2582
- readonly type: string;
2583
- readonly category: string;
2656
+ get type(): string;
2657
+ get category(): string;
2584
2658
  loc: DependencyLocation;
2659
+ setLoc(
2660
+ startLine?: any,
2661
+ startColumn?: any,
2662
+ endLine?: any,
2663
+ endColumn?: any
2664
+ ): void;
2665
+ getContext(): undefined | string;
2585
2666
  getResourceIdentifier(): null | string;
2586
2667
  couldAffectReferencingModule(): boolean | typeof TRANSITIVE;
2587
2668
 
@@ -2635,7 +2716,7 @@ declare class Dependency {
2635
2716
  serialize(__0: { write: any }): void;
2636
2717
  deserialize(__0: { read: any }): void;
2637
2718
  module: any;
2638
- readonly disconnect: any;
2719
+ get disconnect(): any;
2639
2720
  static NO_EXPORTS_REFERENCED: string[][];
2640
2721
  static EXPORTS_OBJECT_REFERENCED: string[][];
2641
2722
  static TRANSITIVE: typeof TRANSITIVE;
@@ -2697,6 +2778,11 @@ declare interface DependencyTemplateContext {
2697
2778
  * when in a concatenated module, information about other concatenated modules
2698
2779
  */
2699
2780
  concatenationScope?: ConcatenationScope;
2781
+
2782
+ /**
2783
+ * the code generation results
2784
+ */
2785
+ codeGenerationResults: CodeGenerationResults;
2700
2786
  }
2701
2787
  declare abstract class DependencyTemplates {
2702
2788
  get(dependency: DependencyConstructor): DependencyTemplate;
@@ -2718,8 +2804,58 @@ declare class DeterministicChunkIdsPlugin {
2718
2804
  apply(compiler: Compiler): void;
2719
2805
  }
2720
2806
  declare class DeterministicModuleIdsPlugin {
2721
- constructor(options?: any);
2722
- options: any;
2807
+ constructor(options?: {
2808
+ /**
2809
+ * context relative to which module identifiers are computed
2810
+ */
2811
+ context?: string;
2812
+ /**
2813
+ * selector function for modules
2814
+ */
2815
+ test?: (arg0: Module) => boolean;
2816
+ /**
2817
+ * maximum id length in digits (used as starting point)
2818
+ */
2819
+ maxLength?: number;
2820
+ /**
2821
+ * hash salt for ids
2822
+ */
2823
+ salt?: number;
2824
+ /**
2825
+ * do not increase the maxLength to find an optimal id space size
2826
+ */
2827
+ fixedLength?: boolean;
2828
+ /**
2829
+ * throw an error when id conflicts occur (instead of rehashing)
2830
+ */
2831
+ failOnConflict?: boolean;
2832
+ });
2833
+ options: {
2834
+ /**
2835
+ * context relative to which module identifiers are computed
2836
+ */
2837
+ context?: string;
2838
+ /**
2839
+ * selector function for modules
2840
+ */
2841
+ test?: (arg0: Module) => boolean;
2842
+ /**
2843
+ * maximum id length in digits (used as starting point)
2844
+ */
2845
+ maxLength?: number;
2846
+ /**
2847
+ * hash salt for ids
2848
+ */
2849
+ salt?: number;
2850
+ /**
2851
+ * do not increase the maxLength to find an optimal id space size
2852
+ */
2853
+ fixedLength?: boolean;
2854
+ /**
2855
+ * throw an error when id conflicts occur (instead of rehashing)
2856
+ */
2857
+ failOnConflict?: boolean;
2858
+ };
2723
2859
 
2724
2860
  /**
2725
2861
  * Apply the plugin
@@ -2997,6 +3133,17 @@ declare class EnableLibraryPlugin {
2997
3133
  static setEnabled(compiler: Compiler, type: string): void;
2998
3134
  static checkEnabled(compiler: Compiler, type: string): void;
2999
3135
  }
3136
+ declare class EnableWasmLoadingPlugin {
3137
+ constructor(type: string);
3138
+ type: string;
3139
+
3140
+ /**
3141
+ * Apply the plugin
3142
+ */
3143
+ apply(compiler: Compiler): void;
3144
+ static setEnabled(compiler: Compiler, type: string): void;
3145
+ static checkEnabled(compiler: Compiler, type: string): void;
3146
+ }
3000
3147
  type Entry =
3001
3148
  | string
3002
3149
  | (() => string | EntryObject | string[] | Promise<EntryStatic>)
@@ -3024,6 +3171,16 @@ declare abstract class EntryDependency extends ModuleDependency {}
3024
3171
  * An object with entry point description.
3025
3172
  */
3026
3173
  declare interface EntryDescription {
3174
+ /**
3175
+ * Enable/disable creating async chunks that are loaded on demand.
3176
+ */
3177
+ asyncChunks?: boolean;
3178
+
3179
+ /**
3180
+ * Base uri for this entry.
3181
+ */
3182
+ baseUri?: string;
3183
+
3027
3184
  /**
3028
3185
  * The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
3029
3186
  */
@@ -3074,6 +3231,16 @@ declare interface EntryDescription {
3074
3231
  * An object with entry point description.
3075
3232
  */
3076
3233
  declare interface EntryDescriptionNormalized {
3234
+ /**
3235
+ * Enable/disable creating async chunks that are loaded on demand.
3236
+ */
3237
+ asyncChunks?: boolean;
3238
+
3239
+ /**
3240
+ * Base uri for this entry.
3241
+ */
3242
+ baseUri?: string;
3243
+
3077
3244
  /**
3078
3245
  * The method of loading chunks (methods included by default are 'jsonp' (web), 'import' (ESM), 'importScripts' (WebWorker), 'require' (sync node.js), 'async-node' (async node.js), but others might be added by plugins).
3079
3246
  */
@@ -3236,6 +3403,16 @@ declare interface Environment {
3236
3403
  * The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from('...')).
3237
3404
  */
3238
3405
  module?: boolean;
3406
+
3407
+ /**
3408
+ * The environment supports optional chaining ('obj?.a' or 'obj?.()').
3409
+ */
3410
+ optionalChaining?: boolean;
3411
+
3412
+ /**
3413
+ * The environment supports template literals.
3414
+ */
3415
+ templateLiteral?: boolean;
3239
3416
  }
3240
3417
  declare class EnvironmentPlugin {
3241
3418
  constructor(...keys: any[]);
@@ -3304,14 +3481,14 @@ type Experiments = ExperimentsCommon & ExperimentsExtra;
3304
3481
  */
3305
3482
  declare interface ExperimentsCommon {
3306
3483
  /**
3307
- * Allow module type 'asset' to generate assets.
3484
+ * Support WebAssembly as asynchronous EcmaScript Module.
3308
3485
  */
3309
- asset?: boolean;
3486
+ asyncWebAssembly?: boolean;
3310
3487
 
3311
3488
  /**
3312
- * Support WebAssembly as asynchronous EcmaScript Module.
3489
+ * Enable backward-compat layer with deprecation warnings for many webpack 4 APIs.
3313
3490
  */
3314
- asyncWebAssembly?: boolean;
3491
+ backCompat?: boolean;
3315
3492
 
3316
3493
  /**
3317
3494
  * Enable additional in memory caching of modules that are unchanged and reference only unchanged modules.
@@ -3324,7 +3501,7 @@ declare interface ExperimentsCommon {
3324
3501
  futureDefaults?: boolean;
3325
3502
 
3326
3503
  /**
3327
- * Enable module and chunk layers.
3504
+ * Enable module layers.
3328
3505
  */
3329
3506
  layers?: boolean;
3330
3507
 
@@ -3353,6 +3530,11 @@ declare interface ExperimentsExtra {
3353
3530
  */
3354
3531
  buildHttp?: HttpUriOptions | (string | RegExp | ((uri: string) => boolean))[];
3355
3532
 
3533
+ /**
3534
+ * Enable css support.
3535
+ */
3536
+ css?: boolean | CssExperimentOptions;
3537
+
3356
3538
  /**
3357
3539
  * Compile entrypoints and import()s only when they are accessed.
3358
3540
  */
@@ -3369,10 +3551,15 @@ declare interface ExperimentsNormalizedExtra {
3369
3551
  */
3370
3552
  buildHttp?: HttpUriOptions;
3371
3553
 
3554
+ /**
3555
+ * Enable css support.
3556
+ */
3557
+ css?: false | CssExperimentOptions;
3558
+
3372
3559
  /**
3373
3560
  * Compile entrypoints and import()s only when they are accessed.
3374
3561
  */
3375
- lazyCompilation?: LazyCompilationOptions;
3562
+ lazyCompilation?: false | LazyCompilationOptions;
3376
3563
  }
3377
3564
  declare abstract class ExportInfo {
3378
3565
  name: string;
@@ -3405,7 +3592,7 @@ declare abstract class ExportInfo {
3405
3592
  canMangleUse?: boolean;
3406
3593
  exportsInfoOwned: boolean;
3407
3594
  exportsInfo?: ExportsInfo;
3408
- readonly canMangle?: boolean;
3595
+ get canMangle(): boolean;
3409
3596
  setUsedInUnknownWay(runtime: RuntimeSpec): boolean;
3410
3597
  setUsedWithoutInfo(runtime: RuntimeSpec): boolean;
3411
3598
  setHasUseInfo(): void;
@@ -3526,11 +3713,11 @@ declare interface ExportSpec {
3526
3713
  }
3527
3714
  type ExportedVariableInfo = string | ScopeInfo | VariableInfo;
3528
3715
  declare abstract class ExportsInfo {
3529
- readonly ownedExports: Iterable<ExportInfo>;
3530
- readonly orderedOwnedExports: Iterable<ExportInfo>;
3531
- readonly exports: Iterable<ExportInfo>;
3532
- readonly orderedExports: Iterable<ExportInfo>;
3533
- readonly otherExportsInfo: ExportInfo;
3716
+ get ownedExports(): Iterable<ExportInfo>;
3717
+ get orderedOwnedExports(): Iterable<ExportInfo>;
3718
+ get exports(): Iterable<ExportInfo>;
3719
+ get orderedExports(): Iterable<ExportInfo>;
3720
+ get otherExportsInfo(): ExportInfo;
3534
3721
  setRedirectNamedTo(exportsInfo?: any): boolean;
3535
3722
  setHasProvideInfo(): void;
3536
3723
  setHasUseInfo(): void;
@@ -3669,6 +3856,14 @@ declare interface ExpressionExpressionInfo {
3669
3856
  rootInfo: string | VariableInfo;
3670
3857
  name: string;
3671
3858
  getMembers: () => string[];
3859
+ getMembersOptionals: () => boolean[];
3860
+ }
3861
+ declare interface ExtensionAliasOption {
3862
+ alias: string | string[];
3863
+ extension: string;
3864
+ }
3865
+ declare interface ExtensionAliasOptions {
3866
+ [index: string]: string | string[];
3672
3867
  }
3673
3868
  type ExternalItem =
3674
3869
  | string
@@ -3823,6 +4018,7 @@ declare interface ExternalsPresets {
3823
4018
  webAsync?: boolean;
3824
4019
  }
3825
4020
  type ExternalsType =
4021
+ | "import"
3826
4022
  | "var"
3827
4023
  | "module"
3828
4024
  | "assign"
@@ -3833,6 +4029,7 @@ type ExternalsType =
3833
4029
  | "commonjs"
3834
4030
  | "commonjs2"
3835
4031
  | "commonjs-module"
4032
+ | "commonjs-static"
3836
4033
  | "amd"
3837
4034
  | "amd-require"
3838
4035
  | "umd"
@@ -3840,7 +4037,6 @@ type ExternalsType =
3840
4037
  | "jsonp"
3841
4038
  | "system"
3842
4039
  | "promise"
3843
- | "import"
3844
4040
  | "script"
3845
4041
  | "node-commonjs";
3846
4042
  declare interface FactorizeModuleOptions {
@@ -3859,6 +4055,7 @@ declare interface FactorizeModuleOptions {
3859
4055
  type FakeHook<T> = T & FakeHookMarker;
3860
4056
  declare interface FakeHookMarker {}
3861
4057
  declare interface FallbackCacheGroup {
4058
+ chunksFilter: (chunk: Chunk) => boolean;
3862
4059
  minSize: SplitChunksSizes;
3863
4060
  maxAsyncSize: SplitChunksSizes;
3864
4061
  maxInitialSize: SplitChunksSizes;
@@ -4071,40 +4268,43 @@ declare abstract class FileSystemInfo {
4071
4268
  getFileTimestamp(
4072
4269
  path: string,
4073
4270
  callback: (
4074
- arg0?: WebpackError,
4271
+ arg0?: null | WebpackError,
4075
4272
  arg1?: null | FileSystemInfoEntry | "ignore"
4076
4273
  ) => void
4077
4274
  ): void;
4078
4275
  getContextTimestamp(
4079
4276
  path: string,
4080
4277
  callback: (
4081
- arg0?: WebpackError,
4278
+ arg0?: null | WebpackError,
4082
4279
  arg1?: null | "ignore" | ResolvedContextFileSystemInfoEntry
4083
4280
  ) => void
4084
4281
  ): void;
4085
4282
  getFileHash(
4086
4283
  path: string,
4087
- callback: (arg0?: WebpackError, arg1?: string) => void
4284
+ callback: (arg0?: null | WebpackError, arg1?: string) => void
4088
4285
  ): void;
4089
4286
  getContextHash(
4090
4287
  path: string,
4091
- callback: (arg0?: WebpackError, arg1?: string) => void
4288
+ callback: (arg0?: null | WebpackError, arg1?: string) => void
4092
4289
  ): void;
4093
4290
  getContextTsh(
4094
4291
  path: string,
4095
4292
  callback: (
4096
- arg0?: WebpackError,
4293
+ arg0?: null | WebpackError,
4097
4294
  arg1?: ResolvedContextTimestampAndHash
4098
4295
  ) => void
4099
4296
  ): void;
4100
4297
  resolveBuildDependencies(
4101
4298
  context: string,
4102
4299
  deps: Iterable<string>,
4103
- callback: (arg0?: Error, arg1?: ResolveBuildDependenciesResult) => void
4300
+ callback: (
4301
+ arg0?: null | Error,
4302
+ arg1?: ResolveBuildDependenciesResult
4303
+ ) => void
4104
4304
  ): void;
4105
4305
  checkResolveResultsValid(
4106
4306
  resolveResults: Map<string, string | false>,
4107
- callback: (arg0?: Error, arg1?: boolean) => void
4307
+ callback: (arg0?: null | Error, arg1?: boolean) => void
4108
4308
  ): void;
4109
4309
  createSnapshot(
4110
4310
  startTime: number,
@@ -4121,12 +4321,12 @@ declare abstract class FileSystemInfo {
4121
4321
  */
4122
4322
  timestamp?: boolean;
4123
4323
  },
4124
- callback: (arg0?: WebpackError, arg1?: Snapshot) => void
4324
+ callback: (arg0?: null | WebpackError, arg1?: null | Snapshot) => void
4125
4325
  ): void;
4126
4326
  mergeSnapshots(snapshot1: Snapshot, snapshot2: Snapshot): Snapshot;
4127
4327
  checkSnapshotValid(
4128
4328
  snapshot: Snapshot,
4129
- callback: (arg0?: WebpackError, arg1?: boolean) => void
4329
+ callback: (arg0?: null | WebpackError, arg1?: boolean) => void
4130
4330
  ): void;
4131
4331
  getDeprecatedFileTimestamps(): Map<any, any>;
4132
4332
  getDeprecatedContextTimestamps(): Map<any, any>;
@@ -4176,6 +4376,11 @@ declare interface GenerateContext {
4176
4376
  */
4177
4377
  concatenationScope?: ConcatenationScope;
4178
4378
 
4379
+ /**
4380
+ * code generation results of other modules (need to have a codeGenerationDependency to use that)
4381
+ */
4382
+ codeGenerationResults?: CodeGenerationResults;
4383
+
4179
4384
  /**
4180
4385
  * which kind of code should be generated
4181
4386
  */
@@ -4315,6 +4520,42 @@ declare interface HandleModuleCreationOptions {
4315
4520
  */
4316
4521
  connectOrigin?: boolean;
4317
4522
  }
4523
+ declare class HarmonyImportDependency extends ModuleDependency {
4524
+ constructor(
4525
+ request: string,
4526
+ sourceOrder: number,
4527
+ assertions?: Record<string, any>
4528
+ );
4529
+ sourceOrder: number;
4530
+ getImportVar(moduleGraph: ModuleGraph): string;
4531
+ getImportStatement(
4532
+ update: boolean,
4533
+ __1: DependencyTemplateContext
4534
+ ): [string, string];
4535
+ getLinkingErrors(
4536
+ moduleGraph: ModuleGraph,
4537
+ ids: string[],
4538
+ additionalMessage: string
4539
+ ): undefined | WebpackError[];
4540
+ static Template: typeof HarmonyImportDependencyTemplate;
4541
+ static ExportPresenceModes: {
4542
+ NONE: 0;
4543
+ WARN: 1;
4544
+ AUTO: 2;
4545
+ ERROR: 3;
4546
+ fromUserOption(str?: any): 0 | 1 | 2 | 3;
4547
+ };
4548
+ static NO_EXPORTS_REFERENCED: string[][];
4549
+ static EXPORTS_OBJECT_REFERENCED: string[][];
4550
+ static TRANSITIVE: typeof TRANSITIVE;
4551
+ }
4552
+ declare class HarmonyImportDependencyTemplate extends DependencyTemplate {
4553
+ constructor();
4554
+ static getImportEmittedRuntime(
4555
+ module: Module,
4556
+ referencedModule: Module
4557
+ ): undefined | string | boolean | SortableSet<string>;
4558
+ }
4318
4559
  declare class Hash {
4319
4560
  constructor();
4320
4561
 
@@ -4345,7 +4586,7 @@ declare interface HashedModuleIdsPluginOptions {
4345
4586
  /**
4346
4587
  * The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
4347
4588
  */
4348
- hashDigest?: "base64" | "latin1" | "hex";
4589
+ hashDigest?: "latin1" | "hex" | "base64";
4349
4590
 
4350
4591
  /**
4351
4592
  * The prefix length of the hash digest to use, defaults to 4.
@@ -4403,6 +4644,11 @@ declare interface HttpUriOptions {
4403
4644
  */
4404
4645
  lockfileLocation?: string;
4405
4646
 
4647
+ /**
4648
+ * Proxy configuration, which can be used to specify a proxy server to use for HTTP requests.
4649
+ */
4650
+ proxy?: string;
4651
+
4406
4652
  /**
4407
4653
  * When set, resources of existing lockfile entries will be fetched and entries will be upgraded when resource content has changed.
4408
4654
  */
@@ -4495,6 +4741,11 @@ declare interface ImportModuleOptions {
4495
4741
  * the target public path
4496
4742
  */
4497
4743
  publicPath?: string;
4744
+
4745
+ /**
4746
+ * target base uri
4747
+ */
4748
+ baseUri?: string;
4498
4749
  }
4499
4750
  type ImportSource =
4500
4751
  | undefined
@@ -4536,7 +4787,7 @@ declare interface InfrastructureLogging {
4536
4787
  /**
4537
4788
  * Log level.
4538
4789
  */
4539
- level?: "none" | "verbose" | "error" | "warn" | "info" | "log";
4790
+ level?: "none" | "error" | "warn" | "info" | "log" | "verbose";
4540
4791
 
4541
4792
  /**
4542
4793
  * Stream used for logging output. Defaults to process.stderr. This option is only used when no custom console is provided.
@@ -4682,7 +4933,7 @@ declare class JavascriptModulesPlugin {
4682
4933
  static chunkHasJs: (chunk: Chunk, chunkGraph: ChunkGraph) => boolean;
4683
4934
  }
4684
4935
  declare class JavascriptParser extends Parser {
4685
- constructor(sourceType?: "module" | "script" | "auto");
4936
+ constructor(sourceType?: "module" | "auto" | "script");
4686
4937
  hooks: Readonly<{
4687
4938
  evaluateTypeof: HookMap<
4688
4939
  SyncBailHook<
@@ -4705,6 +4956,15 @@ declare class JavascriptParser extends Parser {
4705
4956
  undefined | null | BasicEvaluatedExpression
4706
4957
  >
4707
4958
  >;
4959
+ evaluateNewExpression: HookMap<
4960
+ SyncBailHook<[NewExpression], undefined | null | BasicEvaluatedExpression>
4961
+ >;
4962
+ evaluateCallExpression: HookMap<
4963
+ SyncBailHook<
4964
+ [CallExpression],
4965
+ undefined | null | BasicEvaluatedExpression
4966
+ >
4967
+ >;
4708
4968
  evaluateCallExpressionMember: HookMap<
4709
4969
  SyncBailHook<
4710
4970
  [CallExpression, undefined | BasicEvaluatedExpression],
@@ -4759,6 +5019,7 @@ declare class JavascriptParser extends Parser {
4759
5019
  | ClassDeclaration
4760
5020
  | ExpressionStatement
4761
5021
  | BlockStatement
5022
+ | StaticBlock
4762
5023
  | EmptyStatement
4763
5024
  | DebuggerStatement
4764
5025
  | WithStatement
@@ -4789,6 +5050,7 @@ declare class JavascriptParser extends Parser {
4789
5050
  | ClassDeclaration
4790
5051
  | ExpressionStatement
4791
5052
  | BlockStatement
5053
+ | StaticBlock
4792
5054
  | EmptyStatement
4793
5055
  | DebuggerStatement
4794
5056
  | WithStatement
@@ -4819,6 +5081,7 @@ declare class JavascriptParser extends Parser {
4819
5081
  | ClassDeclaration
4820
5082
  | ExpressionStatement
4821
5083
  | BlockStatement
5084
+ | StaticBlock
4822
5085
  | EmptyStatement
4823
5086
  | DebuggerStatement
4824
5087
  | WithStatement
@@ -4924,7 +5187,7 @@ declare class JavascriptParser extends Parser {
4924
5187
  topLevelAwait: SyncBailHook<[Expression], boolean | void>;
4925
5188
  call: HookMap<SyncBailHook<[Expression], boolean | void>>;
4926
5189
  callMemberChain: HookMap<
4927
- SyncBailHook<[CallExpression, string[]], boolean | void>
5190
+ SyncBailHook<[CallExpression, string[], boolean[]], boolean | void>
4928
5191
  >;
4929
5192
  memberChainOfCallMemberChain: HookMap<
4930
5193
  SyncBailHook<
@@ -4940,9 +5203,10 @@ declare class JavascriptParser extends Parser {
4940
5203
  >;
4941
5204
  optionalChaining: SyncBailHook<[ChainExpression], boolean | void>;
4942
5205
  new: HookMap<SyncBailHook<[NewExpression], boolean | void>>;
5206
+ binaryExpression: SyncBailHook<[BinaryExpression], boolean | void>;
4943
5207
  expression: HookMap<SyncBailHook<[Expression], boolean | void>>;
4944
5208
  expressionMemberChain: HookMap<
4945
- SyncBailHook<[Expression, string[]], boolean | void>
5209
+ SyncBailHook<[Expression, string[], boolean[]], boolean | void>
4946
5210
  >;
4947
5211
  unhandledExpressionMemberChain: HookMap<
4948
5212
  SyncBailHook<[Expression, string[]], boolean | void>
@@ -4952,7 +5216,7 @@ declare class JavascriptParser extends Parser {
4952
5216
  program: SyncBailHook<[Program, Comment[]], boolean | void>;
4953
5217
  finish: SyncBailHook<[Program, Comment[]], boolean | void>;
4954
5218
  }>;
4955
- sourceType: "module" | "script" | "auto";
5219
+ sourceType: "module" | "auto" | "script";
4956
5220
  scope: ScopeInfo;
4957
5221
  state: ParserState;
4958
5222
  comments: any;
@@ -4990,6 +5254,7 @@ declare class JavascriptParser extends Parser {
4990
5254
  | ClassDeclaration
4991
5255
  | ExpressionStatement
4992
5256
  | BlockStatement
5257
+ | StaticBlock
4993
5258
  | EmptyStatement
4994
5259
  | DebuggerStatement
4995
5260
  | WithStatement
@@ -5009,7 +5274,7 @@ declare class JavascriptParser extends Parser {
5009
5274
  )[];
5010
5275
  prevStatement: any;
5011
5276
  currentTagData: any;
5012
- getRenameIdentifier(expr?: any): undefined | string;
5277
+ getRenameIdentifier(expr?: any): undefined | string | VariableInfoInterface;
5013
5278
  walkClass(classy: ClassExpression | ClassDeclaration): void;
5014
5279
  preWalkStatements(statements?: any): void;
5015
5280
  blockPreWalkStatements(statements?: any): void;
@@ -5156,12 +5421,10 @@ declare class JavascriptParser extends Parser {
5156
5421
  enterArrayPattern(pattern?: any, onIdent?: any): void;
5157
5422
  enterRestElement(pattern?: any, onIdent?: any): void;
5158
5423
  enterAssignmentPattern(pattern?: any, onIdent?: any): void;
5159
- evaluateExpression(
5160
- expression: Expression
5161
- ): undefined | BasicEvaluatedExpression;
5424
+ evaluateExpression(expression: Expression): BasicEvaluatedExpression;
5162
5425
  parseString(expression?: any): any;
5163
5426
  parseCalculatedString(expression?: any): any;
5164
- evaluate(source?: any): undefined | BasicEvaluatedExpression;
5427
+ evaluate(source: string): BasicEvaluatedExpression;
5165
5428
  isPure(
5166
5429
  expr:
5167
5430
  | undefined
@@ -5210,9 +5473,10 @@ declare class JavascriptParser extends Parser {
5210
5473
  isVariableDefined(name?: any): boolean;
5211
5474
  getVariableInfo(name: string): ExportedVariableInfo;
5212
5475
  setVariable(name: string, variableInfo: ExportedVariableInfo): void;
5476
+ evaluatedVariable(tagInfo?: any): VariableInfo;
5213
5477
  parseCommentOptions(
5214
5478
  range?: any
5215
- ): { options: null; errors: null } | { options: object; errors: any[] };
5479
+ ): { options: null; errors: null } | { options: object; errors: unknown[] };
5216
5480
  extractMemberExpressionChain(expression: MemberExpression): {
5217
5481
  members: string[];
5218
5482
  object:
@@ -5244,6 +5508,7 @@ declare class JavascriptParser extends Parser {
5244
5508
  | ImportExpression
5245
5509
  | ChainExpression
5246
5510
  | Super;
5511
+ membersOptionals: boolean[];
5247
5512
  };
5248
5513
  getFreeInfoFromVariable(varName: string): {
5249
5514
  name: string;
@@ -5289,6 +5554,31 @@ declare interface JavascriptParserOptions {
5289
5554
  */
5290
5555
  commonjsMagicComments?: boolean;
5291
5556
 
5557
+ /**
5558
+ * Enable/disable parsing "import { createRequire } from 'module'" and evaluating createRequire().
5559
+ */
5560
+ createRequire?: string | boolean;
5561
+
5562
+ /**
5563
+ * Specifies global mode for dynamic import.
5564
+ */
5565
+ dynamicImportMode?: "weak" | "eager" | "lazy" | "lazy-once";
5566
+
5567
+ /**
5568
+ * Specifies global prefetch for dynamic import.
5569
+ */
5570
+ dynamicImportPrefetch?: number | boolean;
5571
+
5572
+ /**
5573
+ * Specifies global preload for dynamic import.
5574
+ */
5575
+ dynamicImportPreload?: number | boolean;
5576
+
5577
+ /**
5578
+ * Specifies the behavior of invalid export names in "import ... from ..." and "export ... from ...".
5579
+ */
5580
+ exportsPresence?: false | "auto" | "error" | "warn";
5581
+
5292
5582
  /**
5293
5583
  * Enable warnings for full dynamic dependencies.
5294
5584
  */
@@ -5319,11 +5609,31 @@ declare interface JavascriptParserOptions {
5319
5609
  */
5320
5610
  import?: boolean;
5321
5611
 
5612
+ /**
5613
+ * Specifies the behavior of invalid export names in "import ... from ...".
5614
+ */
5615
+ importExportsPresence?: false | "auto" | "error" | "warn";
5616
+
5617
+ /**
5618
+ * Enable/disable evaluating import.meta.
5619
+ */
5620
+ importMeta?: boolean;
5621
+
5622
+ /**
5623
+ * Enable/disable evaluating import.meta.webpackContext.
5624
+ */
5625
+ importMetaContext?: boolean;
5626
+
5322
5627
  /**
5323
5628
  * Include polyfills or mocks for various node stuff.
5324
5629
  */
5325
5630
  node?: false | NodeOptions;
5326
5631
 
5632
+ /**
5633
+ * Specifies the behavior of invalid export names in "export ... from ...". This might be useful to disable during the migration from "export ... from ..." to "export type ... from ..." when reexporting types in TypeScript.
5634
+ */
5635
+ reexportExportsPresence?: false | "auto" | "error" | "warn";
5636
+
5327
5637
  /**
5328
5638
  * Enable/disable parsing of require.context syntax.
5329
5639
  */
@@ -5345,7 +5655,7 @@ declare interface JavascriptParserOptions {
5345
5655
  requireJs?: boolean;
5346
5656
 
5347
5657
  /**
5348
- * Emit errors instead of warnings when imported names don't exist in imported module.
5658
+ * Deprecated in favor of "exportsPresence". Emit errors instead of warnings when imported names don't exist in imported module.
5349
5659
  */
5350
5660
  strictExportPresence?: boolean;
5351
5661
 
@@ -5559,7 +5869,7 @@ declare interface KnownNormalizedStatsOptions {
5559
5869
  modulesSpace: number;
5560
5870
  chunkModulesSpace: number;
5561
5871
  nestedModulesSpace: number;
5562
- logging: false | "none" | "verbose" | "error" | "warn" | "info" | "log";
5872
+ logging: false | "none" | "error" | "warn" | "info" | "log" | "verbose";
5563
5873
  loggingDebug: ((value: string) => boolean)[];
5564
5874
  loggingTrace: boolean;
5565
5875
  }
@@ -5858,7 +6168,7 @@ declare interface LazyCompilationOptions {
5858
6168
  }
5859
6169
  declare class LazySet<T> {
5860
6170
  constructor(iterable?: Iterable<T>);
5861
- readonly size: number;
6171
+ get size(): number;
5862
6172
  add(item: T): LazySet<T>;
5863
6173
  addAll(iterable: LazySet<T> | Iterable<T>): LazySet<T>;
5864
6174
  clear(): void;
@@ -5871,9 +6181,8 @@ declare class LazySet<T> {
5871
6181
  has(item: T): boolean;
5872
6182
  keys(): IterableIterator<T>;
5873
6183
  values(): IterableIterator<T>;
5874
- [Symbol.iterator](): IterableIterator<T>;
5875
- readonly [Symbol.toStringTag]: string;
5876
6184
  serialize(__0: { write: any }): void;
6185
+ [Symbol.iterator](): IterableIterator<T>;
5877
6186
  static deserialize(__0: { read: any }): LazySet<any>;
5878
6187
  }
5879
6188
  declare interface LibIdentOptions {
@@ -5969,7 +6278,7 @@ declare interface LibraryOptions {
5969
6278
  name?: string | string[] | LibraryCustomUmdObject;
5970
6279
 
5971
6280
  /**
5972
- * Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
6281
+ * Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
5973
6282
  */
5974
6283
  type: string;
5975
6284
 
@@ -6151,7 +6460,7 @@ declare interface LoaderPluginLoaderContext {
6151
6460
  importModule(
6152
6461
  request: string,
6153
6462
  options: ImportModuleOptions,
6154
- callback: (err?: Error, exports?: any) => any
6463
+ callback: (err?: null | Error, exports?: any) => any
6155
6464
  ): void;
6156
6465
  importModule(request: string, options?: ImportModuleOptions): Promise<any>;
6157
6466
  }
@@ -6371,9 +6680,9 @@ declare abstract class MainTemplate {
6371
6680
  localVars: SyncWaterfallHook<[string, Chunk, string]>;
6372
6681
  requireExtensions: SyncWaterfallHook<[string, Chunk, string]>;
6373
6682
  requireEnsure: SyncWaterfallHook<[string, Chunk, string, string]>;
6374
- readonly jsonpScript: SyncWaterfallHook<[string, Chunk]>;
6375
- readonly linkPrefetch: SyncWaterfallHook<[string, Chunk]>;
6376
- readonly linkPreload: SyncWaterfallHook<[string, Chunk]>;
6683
+ get jsonpScript(): SyncWaterfallHook<[string, Chunk]>;
6684
+ get linkPrefetch(): SyncWaterfallHook<[string, Chunk]>;
6685
+ get linkPreload(): SyncWaterfallHook<[string, Chunk]>;
6377
6686
  }>;
6378
6687
  renderCurrentHashCode: (hash: string, length?: number) => string;
6379
6688
  getPublicPath: (options: object) => string;
@@ -6382,8 +6691,8 @@ declare abstract class MainTemplate {
6382
6691
  path?: any,
6383
6692
  options?: any
6384
6693
  ) => { path: string; info: AssetInfo };
6385
- readonly requireFn: "__webpack_require__";
6386
- readonly outputOptions: Output;
6694
+ get requireFn(): "__webpack_require__";
6695
+ get outputOptions(): Output;
6387
6696
  }
6388
6697
  declare interface MapOptions {
6389
6698
  columns?: boolean;
@@ -6456,35 +6765,37 @@ declare class Module extends DependenciesBlock {
6456
6765
  buildMeta: BuildMeta;
6457
6766
  buildInfo: Record<string, any>;
6458
6767
  presentationalDependencies?: Dependency[];
6768
+ codeGenerationDependencies?: Dependency[];
6459
6769
  id: string | number;
6460
- readonly hash: string;
6461
- readonly renderedHash: string;
6770
+ get hash(): string;
6771
+ get renderedHash(): string;
6462
6772
  profile: null | ModuleProfile;
6463
6773
  index: number;
6464
6774
  index2: number;
6465
6775
  depth: number;
6466
6776
  issuer: null | Module;
6467
- readonly usedExports: null | boolean | SortableSet<string>;
6468
- readonly optimizationBailout: (
6777
+ get usedExports(): null | boolean | SortableSet<string>;
6778
+ get optimizationBailout(): (
6469
6779
  | string
6470
6780
  | ((requestShortener: RequestShortener) => string)
6471
6781
  )[];
6472
- readonly optional: boolean;
6782
+ get optional(): boolean;
6473
6783
  addChunk(chunk?: any): boolean;
6474
6784
  removeChunk(chunk?: any): void;
6475
6785
  isInChunk(chunk?: any): boolean;
6476
6786
  isEntryModule(): boolean;
6477
6787
  getChunks(): Chunk[];
6478
6788
  getNumberOfChunks(): number;
6479
- readonly chunksIterable: Iterable<Chunk>;
6789
+ get chunksIterable(): Iterable<Chunk>;
6480
6790
  isProvided(exportName: string): null | boolean;
6481
- readonly exportsArgument: string;
6482
- readonly moduleArgument: string;
6791
+ get exportsArgument(): string;
6792
+ get moduleArgument(): string;
6483
6793
  getExportsType(
6484
6794
  moduleGraph: ModuleGraph,
6485
6795
  strict: boolean
6486
6796
  ): "namespace" | "default-only" | "default-with-named" | "dynamic";
6487
6797
  addPresentationalDependency(presentationalDependency: Dependency): void;
6798
+ addCodeGenerationDependency(codeGenerationDependency: Dependency): void;
6488
6799
  addWarning(warning: WebpackError): void;
6489
6800
  getWarnings(): undefined | Iterable<WebpackError>;
6490
6801
  getNumberOfWarnings(): number;
@@ -6515,7 +6826,7 @@ declare class Module extends DependenciesBlock {
6515
6826
  hasReasons(moduleGraph: ModuleGraph, runtime: RuntimeSpec): boolean;
6516
6827
  needBuild(
6517
6828
  context: NeedBuildContext,
6518
- callback: (arg0?: WebpackError, arg1?: boolean) => void
6829
+ callback: (arg0?: null | WebpackError, arg1?: boolean) => void
6519
6830
  ): void;
6520
6831
  needRebuild(
6521
6832
  fileTimestamps: Map<string, null | number>,
@@ -6572,10 +6883,10 @@ declare class Module extends DependenciesBlock {
6572
6883
  missingDependencies: LazySet<string>,
6573
6884
  buildDependencies: LazySet<string>
6574
6885
  ): void;
6575
- readonly hasEqualsChunks: any;
6576
- readonly isUsed: any;
6577
- readonly errors: any;
6578
- readonly warnings: any;
6886
+ get hasEqualsChunks(): any;
6887
+ get isUsed(): any;
6888
+ get errors(): any;
6889
+ get warnings(): any;
6579
6890
  used: any;
6580
6891
  }
6581
6892
  declare class ModuleConcatenationPlugin {
@@ -6662,6 +6973,7 @@ declare interface ModuleFederationPluginOptions {
6662
6973
  * The external type of the remote containers.
6663
6974
  */
6664
6975
  remoteType?:
6976
+ | "import"
6665
6977
  | "var"
6666
6978
  | "module"
6667
6979
  | "assign"
@@ -6672,6 +6984,7 @@ declare interface ModuleFederationPluginOptions {
6672
6984
  | "commonjs"
6673
6985
  | "commonjs2"
6674
6986
  | "commonjs-module"
6987
+ | "commonjs-static"
6675
6988
  | "amd"
6676
6989
  | "amd-require"
6677
6990
  | "umd"
@@ -6679,7 +6992,6 @@ declare interface ModuleFederationPluginOptions {
6679
6992
  | "jsonp"
6680
6993
  | "system"
6681
6994
  | "promise"
6682
- | "import"
6683
6995
  | "script"
6684
6996
  | "node-commonjs";
6685
6997
 
@@ -6843,7 +7155,7 @@ declare class ModuleGraphConnection {
6843
7155
  ) => ConnectionState
6844
7156
  ): void;
6845
7157
  addExplanation(explanation: string): void;
6846
- readonly explanation: string;
7158
+ get explanation(): string;
6847
7159
  active: void;
6848
7160
  isActive(runtime: RuntimeSpec): boolean;
6849
7161
  isTargetActive(runtime: RuntimeSpec): boolean;
@@ -7060,6 +7372,37 @@ declare interface ModuleReferenceOptions {
7060
7372
  */
7061
7373
  asiSafe?: boolean;
7062
7374
  }
7375
+ declare interface ModuleSettings {
7376
+ /**
7377
+ * Specifies the layer in which the module should be placed in.
7378
+ */
7379
+ layer?: string;
7380
+
7381
+ /**
7382
+ * Module type to use for the module.
7383
+ */
7384
+ type?: string;
7385
+
7386
+ /**
7387
+ * Options for the resolver.
7388
+ */
7389
+ resolve?: ResolveOptionsWebpackOptions;
7390
+
7391
+ /**
7392
+ * Options for parsing.
7393
+ */
7394
+ parser?: { [index: string]: any };
7395
+
7396
+ /**
7397
+ * The options for the module generator.
7398
+ */
7399
+ generator?: { [index: string]: any };
7400
+
7401
+ /**
7402
+ * Flags a module as with or without side effects.
7403
+ */
7404
+ sideEffects?: boolean;
7405
+ }
7063
7406
  declare abstract class ModuleTemplate {
7064
7407
  type: string;
7065
7408
  hooks: Readonly<{
@@ -7069,7 +7412,7 @@ declare abstract class ModuleTemplate {
7069
7412
  package: { tap: (options?: any, fn?: any) => void };
7070
7413
  hash: { tap: (options?: any, fn?: any) => void };
7071
7414
  }>;
7072
- readonly runtimeTemplate: any;
7415
+ get runtimeTemplate(): any;
7073
7416
  }
7074
7417
  declare class MultiCompiler {
7075
7418
  constructor(
@@ -7087,8 +7430,8 @@ declare class MultiCompiler {
7087
7430
  compilers: Compiler[];
7088
7431
  dependencies: WeakMap<Compiler, string[]>;
7089
7432
  running: boolean;
7090
- readonly options: WebpackOptionsNormalized[] & MultiCompilerOptions;
7091
- readonly outputPath: string;
7433
+ get options(): WebpackOptionsNormalized[] & MultiCompilerOptions;
7434
+ get outputPath(): string;
7092
7435
  inputFileSystem: InputFileSystem;
7093
7436
  outputFileSystem: OutputFileSystem;
7094
7437
  watchFileSystem: WatchFileSystem;
@@ -7117,7 +7460,7 @@ declare interface MultiCompilerOptions {
7117
7460
  }
7118
7461
  declare abstract class MultiStats {
7119
7462
  stats: Stats[];
7120
- readonly hash: string;
7463
+ get hash(): string;
7121
7464
  hasErrors(): boolean;
7122
7465
  hasWarnings(): boolean;
7123
7466
  toJson(options?: any): StatsCompilation;
@@ -7224,6 +7567,7 @@ type NodeEstreeIndex =
7224
7567
  | PrivateIdentifier
7225
7568
  | ExpressionStatement
7226
7569
  | BlockStatement
7570
+ | StaticBlock
7227
7571
  | EmptyStatement
7228
7572
  | DebuggerStatement
7229
7573
  | WithStatement
@@ -7248,11 +7592,11 @@ type NodeEstreeIndex =
7248
7592
  | PropertyDefinition
7249
7593
  | VariableDeclarator
7250
7594
  | Program
7251
- | Super
7252
7595
  | SwitchCase
7253
7596
  | CatchClause
7254
7597
  | Property
7255
7598
  | AssignmentProperty
7599
+ | Super
7256
7600
  | TemplateElement
7257
7601
  | SpreadElement
7258
7602
  | ObjectPattern
@@ -7310,81 +7654,20 @@ declare class NodeTemplatePlugin {
7310
7654
  }
7311
7655
  type NodeWebpackOptions = false | NodeOptions;
7312
7656
  declare class NormalModule extends Module {
7313
- constructor(__0: {
7314
- /**
7315
- * an optional layer in which the module is
7316
- */
7317
- layer?: string;
7318
- /**
7319
- * module type
7320
- */
7321
- type: string;
7322
- /**
7323
- * request string
7324
- */
7325
- request: string;
7326
- /**
7327
- * request intended by user (without loaders from config)
7328
- */
7329
- userRequest: string;
7330
- /**
7331
- * request without resolving
7332
- */
7333
- rawRequest: string;
7334
- /**
7335
- * list of loaders
7336
- */
7337
- loaders: LoaderItem[];
7338
- /**
7339
- * path + query of the real resource
7340
- */
7341
- resource: string;
7342
- /**
7343
- * resource resolve data
7344
- */
7345
- resourceResolveData?: Record<string, any>;
7346
- /**
7347
- * context directory for resolving
7348
- */
7349
- context: string;
7350
- /**
7351
- * path + query of the matched resource (virtual)
7352
- */
7353
- matchResource?: string;
7354
- /**
7355
- * the parser used
7356
- */
7357
- parser: Parser;
7358
- /**
7359
- * the options of the parser used
7360
- */
7361
- parserOptions: object;
7362
- /**
7363
- * the generator used
7364
- */
7365
- generator: Generator;
7366
- /**
7367
- * the options of the generator used
7368
- */
7369
- generatorOptions: object;
7370
- /**
7371
- * options used for resolving requests from this module
7372
- */
7373
- resolveOptions: Object;
7374
- });
7657
+ constructor(__0: NormalModuleCreateData);
7375
7658
  request: string;
7376
7659
  userRequest: string;
7377
7660
  rawRequest: string;
7378
7661
  binary: boolean;
7379
7662
  parser: Parser;
7380
- parserOptions: object;
7663
+ parserOptions?: Record<string, any>;
7381
7664
  generator: Generator;
7382
- generatorOptions: object;
7665
+ generatorOptions?: Record<string, any>;
7383
7666
  resource: string;
7384
7667
  resourceResolveData?: Record<string, any>;
7385
7668
  matchResource?: string;
7386
7669
  loaders: LoaderItem[];
7387
- error?: WebpackError;
7670
+ error?: null | WebpackError;
7388
7671
  restoreFromUnsafeCache(
7389
7672
  unsafeCacheData?: any,
7390
7673
  normalModuleFactory?: any
@@ -7422,20 +7705,109 @@ declare interface NormalModuleCompilationHooks {
7422
7705
  readResource: HookMap<AsyncSeriesBailHook<[object], string | Buffer>>;
7423
7706
  needBuild: AsyncSeriesBailHook<[NormalModule, NeedBuildContext], boolean>;
7424
7707
  }
7708
+ declare interface NormalModuleCreateData {
7709
+ /**
7710
+ * an optional layer in which the module is
7711
+ */
7712
+ layer?: string;
7713
+
7714
+ /**
7715
+ * module type
7716
+ */
7717
+ type: string;
7718
+
7719
+ /**
7720
+ * request string
7721
+ */
7722
+ request: string;
7723
+
7724
+ /**
7725
+ * request intended by user (without loaders from config)
7726
+ */
7727
+ userRequest: string;
7728
+
7729
+ /**
7730
+ * request without resolving
7731
+ */
7732
+ rawRequest: string;
7733
+
7734
+ /**
7735
+ * list of loaders
7736
+ */
7737
+ loaders: LoaderItem[];
7738
+
7739
+ /**
7740
+ * path + query of the real resource
7741
+ */
7742
+ resource: string;
7743
+
7744
+ /**
7745
+ * resource resolve data
7746
+ */
7747
+ resourceResolveData?: Record<string, any>;
7748
+
7749
+ /**
7750
+ * context directory for resolving
7751
+ */
7752
+ context: string;
7753
+
7754
+ /**
7755
+ * path + query of the matched resource (virtual)
7756
+ */
7757
+ matchResource?: string;
7758
+
7759
+ /**
7760
+ * the parser used
7761
+ */
7762
+ parser: Parser;
7763
+
7764
+ /**
7765
+ * the options of the parser used
7766
+ */
7767
+ parserOptions?: Record<string, any>;
7768
+
7769
+ /**
7770
+ * the generator used
7771
+ */
7772
+ generator: Generator;
7773
+
7774
+ /**
7775
+ * the options of the generator used
7776
+ */
7777
+ generatorOptions?: Record<string, any>;
7778
+
7779
+ /**
7780
+ * options used for resolving requests from this module
7781
+ */
7782
+ resolveOptions?: ResolveOptionsWebpackOptions;
7783
+ }
7425
7784
  declare abstract class NormalModuleFactory extends ModuleFactory {
7426
7785
  hooks: Readonly<{
7427
- resolve: AsyncSeriesBailHook<[ResolveData], any>;
7786
+ resolve: AsyncSeriesBailHook<[ResolveData], false | void | Module>;
7428
7787
  resolveForScheme: HookMap<
7429
7788
  AsyncSeriesBailHook<[ResourceDataWithData, ResolveData], true | void>
7430
7789
  >;
7431
7790
  resolveInScheme: HookMap<
7432
7791
  AsyncSeriesBailHook<[ResourceDataWithData, ResolveData], true | void>
7433
7792
  >;
7434
- factorize: AsyncSeriesBailHook<[ResolveData], any>;
7435
- beforeResolve: AsyncSeriesBailHook<[ResolveData], any>;
7436
- afterResolve: AsyncSeriesBailHook<[ResolveData], any>;
7437
- createModule: AsyncSeriesBailHook<[Object, ResolveData], any>;
7438
- module: SyncWaterfallHook<[Module, Object, ResolveData], any>;
7793
+ factorize: AsyncSeriesBailHook<[ResolveData], Module>;
7794
+ beforeResolve: AsyncSeriesBailHook<[ResolveData], false | void>;
7795
+ afterResolve: AsyncSeriesBailHook<[ResolveData], false | void>;
7796
+ createModule: AsyncSeriesBailHook<
7797
+ [
7798
+ Partial<NormalModuleCreateData & { settings: ModuleSettings }>,
7799
+ ResolveData
7800
+ ],
7801
+ void | Module
7802
+ >;
7803
+ module: SyncWaterfallHook<
7804
+ [
7805
+ Module,
7806
+ Partial<NormalModuleCreateData & { settings: ModuleSettings }>,
7807
+ ResolveData
7808
+ ],
7809
+ Module
7810
+ >;
7439
7811
  createParser: HookMap<SyncBailHook<any, any>>;
7440
7812
  parser: HookMap<SyncHook<any>>;
7441
7813
  createGenerator: HookMap<SyncBailHook<any, any>>;
@@ -7517,7 +7889,7 @@ declare interface NormalModuleLoaderContext<OptionsType> {
7517
7889
  rootContext: string;
7518
7890
  fs: InputFileSystem;
7519
7891
  sourceMap?: boolean;
7520
- mode: "development" | "production" | "none";
7892
+ mode: "none" | "development" | "production";
7521
7893
  webpack?: boolean;
7522
7894
  _module?: NormalModule;
7523
7895
  _compilation?: Compilation;
@@ -7543,8 +7915,8 @@ type NormalizedStatsOptions = KnownNormalizedStatsOptions &
7543
7915
  Omit<
7544
7916
  StatsOptions,
7545
7917
  | "context"
7546
- | "requestShortener"
7547
7918
  | "chunkGroups"
7919
+ | "requestShortener"
7548
7920
  | "chunksSort"
7549
7921
  | "modulesSort"
7550
7922
  | "chunkModulesSort"
@@ -7931,6 +8303,10 @@ declare interface OptimizationSplitChunksOptions {
7931
8303
  * Sets the name delimiter for created chunks.
7932
8304
  */
7933
8305
  automaticNameDelimiter?: string;
8306
+ /**
8307
+ * Select chunks for determining shared modules (defaults to "async", "initial" and "all" requires adding these chunks to the HTML).
8308
+ */
8309
+ chunks?: "all" | "initial" | "async" | ((chunk: Chunk) => boolean);
7934
8310
  /**
7935
8311
  * Maximal size hint for the on-demand chunks.
7936
8312
  */
@@ -8042,6 +8418,11 @@ declare interface Output {
8042
8418
  | string
8043
8419
  | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8044
8420
 
8421
+ /**
8422
+ * Enable/disable creating async chunks that are loaded on demand.
8423
+ */
8424
+ asyncChunks?: boolean;
8425
+
8045
8426
  /**
8046
8427
  * Add a comment in the UMD wrapper.
8047
8428
  */
@@ -8094,6 +8475,20 @@ declare interface Output {
8094
8475
  */
8095
8476
  crossOriginLoading?: false | "anonymous" | "use-credentials";
8096
8477
 
8478
+ /**
8479
+ * Specifies the filename template of non-initial output css 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.
8480
+ */
8481
+ cssChunkFilename?:
8482
+ | string
8483
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8484
+
8485
+ /**
8486
+ * Specifies the filename template of output css 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.
8487
+ */
8488
+ cssFilename?:
8489
+ | string
8490
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8491
+
8097
8492
  /**
8098
8493
  * Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
8099
8494
  */
@@ -8200,7 +8595,7 @@ declare interface Output {
8200
8595
  libraryExport?: string | string[];
8201
8596
 
8202
8597
  /**
8203
- * Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
8598
+ * Type of library (types included by default are 'var', 'module', 'assign', 'assign-properties', 'this', 'window', 'self', 'global', 'commonjs', 'commonjs2', 'commonjs-module', 'commonjs-static', 'amd', 'amd-require', 'umd', 'umd2', 'jsonp', 'system', but others might be added by plugins).
8204
8599
  */
8205
8600
  libraryTarget?: string;
8206
8601
 
@@ -8313,6 +8708,10 @@ declare interface OutputFileSystem {
8313
8708
  arg0: string,
8314
8709
  arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: IStats) => void
8315
8710
  ) => void;
8711
+ lstat?: (
8712
+ arg0: string,
8713
+ arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: IStats) => void
8714
+ ) => void;
8316
8715
  readFile: (
8317
8716
  arg0: string,
8318
8717
  arg1: (arg0?: null | NodeJS.ErrnoException, arg1?: string | Buffer) => void
@@ -8333,6 +8732,11 @@ declare interface OutputNormalized {
8333
8732
  | string
8334
8733
  | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8335
8734
 
8735
+ /**
8736
+ * Enable/disable creating async chunks that are loaded on demand.
8737
+ */
8738
+ asyncChunks?: boolean;
8739
+
8336
8740
  /**
8337
8741
  * Add charset attribute for script tag.
8338
8742
  */
@@ -8380,6 +8784,20 @@ declare interface OutputNormalized {
8380
8784
  */
8381
8785
  crossOriginLoading?: false | "anonymous" | "use-credentials";
8382
8786
 
8787
+ /**
8788
+ * Specifies the filename template of non-initial output css 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.
8789
+ */
8790
+ cssChunkFilename?:
8791
+ | string
8792
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8793
+
8794
+ /**
8795
+ * Specifies the filename template of output css 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.
8796
+ */
8797
+ cssFilename?:
8798
+ | string
8799
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8800
+
8383
8801
  /**
8384
8802
  * Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
8385
8803
  */
@@ -8775,7 +9193,7 @@ declare class ProgressPlugin {
8775
9193
  showModules?: boolean;
8776
9194
  showDependencies?: boolean;
8777
9195
  showActiveModules?: boolean;
8778
- percentBy?: null | "dependencies" | "modules" | "entries";
9196
+ percentBy?: null | "modules" | "dependencies" | "entries";
8779
9197
  apply(compiler: Compiler | MultiCompiler): void;
8780
9198
  static getReporter(
8781
9199
  compiler: Compiler
@@ -8836,7 +9254,7 @@ declare interface ProgressPluginOptions {
8836
9254
  /**
8837
9255
  * Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.
8838
9256
  */
8839
- percentBy?: null | "dependencies" | "modules" | "entries";
9257
+ percentBy?: null | "modules" | "dependencies" | "entries";
8840
9258
 
8841
9259
  /**
8842
9260
  * Collect profile data for progress steps. Default: false.
@@ -9003,6 +9421,11 @@ declare interface RenderBootstrapContext {
9003
9421
  */
9004
9422
  chunk: Chunk;
9005
9423
 
9424
+ /**
9425
+ * results of code generation
9426
+ */
9427
+ codeGenerationResults: CodeGenerationResults;
9428
+
9006
9429
  /**
9007
9430
  * the runtime template
9008
9431
  */
@@ -9177,6 +9600,11 @@ declare interface ResolveContext {
9177
9600
  * log function
9178
9601
  */
9179
9602
  log?: (arg0: string) => void;
9603
+
9604
+ /**
9605
+ * yield result, if provided plugins can return several results
9606
+ */
9607
+ yield?: (arg0: ResolveRequest) => void;
9180
9608
  }
9181
9609
  declare interface ResolveData {
9182
9610
  contextInfo: ModuleFactoryCreateDataContextInfo;
@@ -9186,7 +9614,7 @@ declare interface ResolveData {
9186
9614
  assertions?: Record<string, any>;
9187
9615
  dependencies: ModuleDependency[];
9188
9616
  dependencyType: string;
9189
- createData: Object;
9617
+ createData: Partial<NormalModuleCreateData & { settings: ModuleSettings }>;
9190
9618
  fileDependencies: LazySet<string>;
9191
9619
  missingDependencies: LazySet<string>;
9192
9620
  contextDependencies: LazySet<string>;
@@ -9200,6 +9628,7 @@ declare interface ResolveOptionsTypes {
9200
9628
  alias: AliasOption[];
9201
9629
  fallback: AliasOption[];
9202
9630
  aliasFields: Set<string | string[]>;
9631
+ extensionAlias: ExtensionAliasOption[];
9203
9632
  cachePredicate: (arg0: ResolveRequest) => boolean;
9204
9633
  cacheWithContext: boolean;
9205
9634
 
@@ -9298,6 +9727,11 @@ declare interface ResolveOptionsWebpackOptions {
9298
9727
  */
9299
9728
  exportsFields?: string[];
9300
9729
 
9730
+ /**
9731
+ * An object which maps extension to extension aliases.
9732
+ */
9733
+ extensionAlias?: { [index: string]: string | string[] };
9734
+
9301
9735
  /**
9302
9736
  * Extensions added to the request when trying to find the file.
9303
9737
  */
@@ -9356,7 +9790,7 @@ declare interface ResolveOptionsWebpackOptions {
9356
9790
  /**
9357
9791
  * Plugins for the resolver.
9358
9792
  */
9359
- plugins?: ("..." | ResolvePluginInstance)[];
9793
+ plugins?: (ResolvePluginInstance | "...")[];
9360
9794
 
9361
9795
  /**
9362
9796
  * Prefer to resolve server-relative URLs (starting with '/') as absolute paths before falling back to resolve in 'resolve.roots'.
@@ -9955,31 +10389,35 @@ declare class RuntimeSpecMap<T> {
9955
10389
  update(runtime?: any, fn?: any): void;
9956
10390
  keys(): RuntimeSpec[];
9957
10391
  values(): IterableIterator<T>;
9958
- readonly size?: number;
10392
+ get size(): number;
9959
10393
  }
9960
10394
  declare class RuntimeSpecSet {
9961
10395
  constructor(iterable?: any);
9962
10396
  add(runtime?: any): void;
9963
10397
  has(runtime?: any): boolean;
10398
+ get size(): number;
9964
10399
  [Symbol.iterator](): IterableIterator<RuntimeSpec>;
9965
- readonly size: number;
9966
10400
  }
9967
10401
  declare abstract class RuntimeTemplate {
9968
10402
  compilation: Compilation;
9969
10403
  outputOptions: OutputNormalized;
9970
10404
  requestShortener: RequestShortener;
10405
+ globalObject: string;
10406
+ contentHashReplacement: string;
9971
10407
  isIIFE(): undefined | boolean;
9972
10408
  isModule(): undefined | boolean;
9973
10409
  supportsConst(): undefined | boolean;
9974
10410
  supportsArrowFunction(): undefined | boolean;
10411
+ supportsOptionalChaining(): undefined | boolean;
9975
10412
  supportsForOf(): undefined | boolean;
9976
10413
  supportsDestructuring(): undefined | boolean;
9977
10414
  supportsBigIntLiteral(): undefined | boolean;
9978
10415
  supportsDynamicImport(): undefined | boolean;
9979
10416
  supportsEcmaScriptModuleSyntax(): undefined | boolean;
9980
- supportTemplateLiteral(): boolean;
10417
+ supportTemplateLiteral(): undefined | boolean;
9981
10418
  returningFunction(returnValue?: any, args?: string): string;
9982
10419
  basicFunction(args?: any, body?: any): string;
10420
+ concatenation(...args: (string | { expr: string })[]): string;
9983
10421
  expressionFunction(expression?: any, args?: string): string;
9984
10422
  emptyFunction(): "x => {}" | "function() {}";
9985
10423
  destructureArray(items?: any, value?: any): string;
@@ -10356,6 +10794,24 @@ declare abstract class RuntimeTemplate {
10356
10794
  */
10357
10795
  runtimeRequirements: Set<string>;
10358
10796
  }): string;
10797
+ assetUrl(__0: {
10798
+ /**
10799
+ * the module
10800
+ */
10801
+ module: Module;
10802
+ /**
10803
+ * the public path
10804
+ */
10805
+ publicPath: string;
10806
+ /**
10807
+ * runtime
10808
+ */
10809
+ runtime?: RuntimeSpec;
10810
+ /**
10811
+ * the code generation results
10812
+ */
10813
+ codeGenerationResults: CodeGenerationResults;
10814
+ }): string;
10359
10815
  }
10360
10816
  declare abstract class RuntimeValue {
10361
10817
  fn: (arg0: {
@@ -10364,7 +10820,7 @@ declare abstract class RuntimeValue {
10364
10820
  readonly version?: string;
10365
10821
  }) => CodeValuePrimitive;
10366
10822
  options: true | RuntimeValueOptions;
10367
- readonly fileDependencies?: true | string[];
10823
+ get fileDependencies(): true | string[];
10368
10824
  exec(
10369
10825
  parser: JavascriptParser,
10370
10826
  valueCacheVersions: Map<string, string | Set<string>>,
@@ -10638,7 +11094,6 @@ declare abstract class SortableSet<T> extends Set<T> {
10638
11094
  * Iterates over values in the set.
10639
11095
  */
10640
11096
  [Symbol.iterator](): IterableIterator<T>;
10641
- readonly [Symbol.toStringTag]: string;
10642
11097
  }
10643
11098
  declare class Source {
10644
11099
  constructor();
@@ -10818,7 +11273,7 @@ declare abstract class StackedMap<K, V> {
10818
11273
  asSet(): Set<K>;
10819
11274
  asPairArray(): [K, Cell<V>][];
10820
11275
  asMap(): Map<K, Cell<V>>;
10821
- readonly size: number;
11276
+ get size(): number;
10822
11277
  createChild(): StackedMap<K, V>;
10823
11278
  }
10824
11279
  type StartupRenderContext = RenderContext & { inlined: boolean };
@@ -10828,6 +11283,7 @@ type Statement =
10828
11283
  | ClassDeclaration
10829
11284
  | ExpressionStatement
10830
11285
  | BlockStatement
11286
+ | StaticBlock
10831
11287
  | EmptyStatement
10832
11288
  | DebuggerStatement
10833
11289
  | WithStatement
@@ -10847,9 +11303,9 @@ type Statement =
10847
11303
  declare class Stats {
10848
11304
  constructor(compilation: Compilation);
10849
11305
  compilation: Compilation;
10850
- readonly hash?: string;
10851
- readonly startTime: any;
10852
- readonly endTime: any;
11306
+ get hash(): string;
11307
+ get startTime(): any;
11308
+ get endTime(): any;
10853
11309
  hasWarnings(): boolean;
10854
11310
  hasErrors(): boolean;
10855
11311
  toJson(options?: string | StatsOptions): StatsCompilation;
@@ -11195,7 +11651,7 @@ declare interface StatsOptions {
11195
11651
  /**
11196
11652
  * Add logging output.
11197
11653
  */
11198
- logging?: boolean | "none" | "verbose" | "error" | "warn" | "info" | "log";
11654
+ logging?: boolean | "none" | "error" | "warn" | "info" | "log" | "verbose";
11199
11655
 
11200
11656
  /**
11201
11657
  * Include debug logging of specified loggers (i. e. for plugins or loaders). Filters can be Strings, RegExps or Functions.
@@ -11364,15 +11820,40 @@ type StatsPrinterContext = KnownStatsPrinterContext & Record<string, any>;
11364
11820
  type StatsProfile = KnownStatsProfile & Record<string, any>;
11365
11821
  type StatsValue =
11366
11822
  | boolean
11823
+ | StatsOptions
11367
11824
  | "none"
11825
+ | "verbose"
11368
11826
  | "summary"
11369
11827
  | "errors-only"
11370
11828
  | "errors-warnings"
11371
11829
  | "minimal"
11372
11830
  | "normal"
11373
- | "detailed"
11374
- | "verbose"
11375
- | StatsOptions;
11831
+ | "detailed";
11832
+ declare class SyncModuleIdsPlugin {
11833
+ constructor(__0: {
11834
+ /**
11835
+ * path to file
11836
+ */
11837
+ path: string;
11838
+ /**
11839
+ * context for module names
11840
+ */
11841
+ context?: string;
11842
+ /**
11843
+ * selector for modules
11844
+ */
11845
+ test: (arg0: Module) => boolean;
11846
+ /**
11847
+ * operation mode (defaults to merge)
11848
+ */
11849
+ mode?: "read" | "merge" | "create" | "update";
11850
+ });
11851
+
11852
+ /**
11853
+ * Apply the plugin
11854
+ */
11855
+ apply(compiler: Compiler): void;
11856
+ }
11376
11857
  declare interface SyntheticDependencyLocation {
11377
11858
  name: string;
11378
11859
  index?: number;
@@ -11449,6 +11930,7 @@ declare interface UpdateHashContextGenerator {
11449
11930
  module: NormalModule;
11450
11931
  chunkGraph: ChunkGraph;
11451
11932
  runtime: RuntimeSpec;
11933
+ runtimeTemplate?: RuntimeTemplate;
11452
11934
  }
11453
11935
  type UsageStateType = 0 | 1 | 2 | 3 | 4;
11454
11936
  declare interface UserResolveOptions {
@@ -11462,6 +11944,11 @@ declare interface UserResolveOptions {
11462
11944
  */
11463
11945
  fallback?: AliasOption[] | AliasOptions;
11464
11946
 
11947
+ /**
11948
+ * An object which maps extension to extension aliases
11949
+ */
11950
+ extensionAlias?: ExtensionAliasOptions;
11951
+
11465
11952
  /**
11466
11953
  * A list of alias fields in description files
11467
11954
  */
@@ -11577,7 +12064,7 @@ declare interface UserResolveOptions {
11577
12064
  restrictions?: (string | RegExp)[];
11578
12065
 
11579
12066
  /**
11580
- * Use only the sync constiants of the file system calls
12067
+ * Use only the sync constraints of the file system calls
11581
12068
  */
11582
12069
  useSyncFileSystemCalls?: boolean;
11583
12070
 
@@ -11697,6 +12184,32 @@ declare interface Watcher {
11697
12184
  * get info about directories
11698
12185
  */
11699
12186
  getContextTimeInfoEntries: () => Map<string, FileSystemInfoEntry | "ignore">;
12187
+
12188
+ /**
12189
+ * get info about timestamps and changes
12190
+ */
12191
+ getInfo?: () => WatcherInfo;
12192
+ }
12193
+ declare interface WatcherInfo {
12194
+ /**
12195
+ * get current aggregated changes that have not yet send to callback
12196
+ */
12197
+ changes: Set<string>;
12198
+
12199
+ /**
12200
+ * get current aggregated removals that have not yet send to callback
12201
+ */
12202
+ removals: Set<string>;
12203
+
12204
+ /**
12205
+ * get info about files
12206
+ */
12207
+ fileTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">;
12208
+
12209
+ /**
12210
+ * get info about directories
12211
+ */
12212
+ contextTimeInfoEntries: Map<string, FileSystemInfoEntry | "ignore">;
11700
12213
  }
11701
12214
  declare abstract class Watching {
11702
12215
  startTime: null | number;
@@ -11914,6 +12427,7 @@ declare interface WebpackOptionsNormalized {
11914
12427
  * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
11915
12428
  */
11916
12429
  externalsType?:
12430
+ | "import"
11917
12431
  | "var"
11918
12432
  | "module"
11919
12433
  | "assign"
@@ -11924,6 +12438,7 @@ declare interface WebpackOptionsNormalized {
11924
12438
  | "commonjs"
11925
12439
  | "commonjs2"
11926
12440
  | "commonjs-module"
12441
+ | "commonjs-static"
11927
12442
  | "amd"
11928
12443
  | "amd-require"
11929
12444
  | "umd"
@@ -11931,7 +12446,6 @@ declare interface WebpackOptionsNormalized {
11931
12446
  | "jsonp"
11932
12447
  | "system"
11933
12448
  | "promise"
11934
- | "import"
11935
12449
  | "script"
11936
12450
  | "node-commonjs";
11937
12451
 
@@ -11956,7 +12470,7 @@ declare interface WebpackOptionsNormalized {
11956
12470
  /**
11957
12471
  * Enable production optimizations or development hints.
11958
12472
  */
11959
- mode?: "development" | "production" | "none";
12473
+ mode?: "none" | "development" | "production";
11960
12474
 
11961
12475
  /**
11962
12476
  * Options affecting the normal modules (`NormalModuleFactory`).
@@ -12183,70 +12697,75 @@ declare namespace exports {
12183
12697
  export let matchObject: (obj?: any, str?: any) => boolean;
12184
12698
  }
12185
12699
  export namespace RuntimeGlobals {
12186
- export let require: string;
12187
- export let requireScope: string;
12188
- export let exports: string;
12189
- export let thisAsExports: string;
12190
- export let returnExportsFromRuntime: string;
12191
- export let module: string;
12192
- export let moduleId: string;
12193
- export let moduleLoaded: string;
12194
- export let publicPath: string;
12195
- export let entryModuleId: string;
12196
- export let moduleCache: string;
12197
- export let moduleFactories: string;
12198
- export let moduleFactoriesAddOnly: string;
12199
- export let ensureChunk: string;
12200
- export let ensureChunkHandlers: string;
12201
- export let ensureChunkIncludeEntries: string;
12202
- export let prefetchChunk: string;
12203
- export let prefetchChunkHandlers: string;
12204
- export let preloadChunk: string;
12205
- export let preloadChunkHandlers: string;
12206
- export let definePropertyGetters: string;
12207
- export let makeNamespaceObject: string;
12208
- export let createFakeNamespaceObject: string;
12209
- export let compatGetDefaultExport: string;
12210
- export let harmonyModuleDecorator: string;
12211
- export let nodeModuleDecorator: string;
12212
- export let getFullHash: string;
12213
- export let wasmInstances: string;
12214
- export let instantiateWasm: string;
12215
- export let uncaughtErrorHandler: string;
12216
- export let scriptNonce: string;
12217
- export let loadScript: string;
12218
- export let createScriptUrl: string;
12219
- export let chunkName: string;
12220
- export let runtimeId: string;
12221
- export let getChunkScriptFilename: string;
12222
- export let getChunkUpdateScriptFilename: string;
12223
- export let startup: string;
12224
- export let startupNoDefault: string;
12225
- export let startupOnlyAfter: string;
12226
- export let startupOnlyBefore: string;
12227
- export let chunkCallback: string;
12228
- export let startupEntrypoint: string;
12229
- export let onChunksLoaded: string;
12230
- export let externalInstallChunk: string;
12231
- export let interceptModuleExecution: string;
12232
- export let global: string;
12233
- export let shareScopeMap: string;
12234
- export let initializeSharing: string;
12235
- export let currentRemoteGetScope: string;
12236
- export let getUpdateManifestFilename: string;
12237
- export let hmrDownloadManifest: string;
12238
- export let hmrDownloadUpdateHandlers: string;
12239
- export let hmrModuleData: string;
12240
- export let hmrInvalidateModuleHandlers: string;
12241
- export let hmrRuntimeStatePrefix: string;
12242
- export let amdDefine: string;
12243
- export let amdOptions: string;
12244
- export let system: string;
12245
- export let hasOwnProperty: string;
12246
- export let systemContext: string;
12247
- export let baseURI: string;
12248
- export let relativeUrl: string;
12249
- export let asyncModule: string;
12700
+ export let require: "__webpack_require__";
12701
+ export let requireScope: "__webpack_require__.*";
12702
+ export let exports: "__webpack_exports__";
12703
+ export let thisAsExports: "top-level-this-exports";
12704
+ export let returnExportsFromRuntime: "return-exports-from-runtime";
12705
+ export let module: "module";
12706
+ export let moduleId: "module.id";
12707
+ export let moduleLoaded: "module.loaded";
12708
+ export let publicPath: "__webpack_require__.p";
12709
+ export let entryModuleId: "__webpack_require__.s";
12710
+ export let moduleCache: "__webpack_require__.c";
12711
+ export let moduleFactories: "__webpack_require__.m";
12712
+ export let moduleFactoriesAddOnly: "__webpack_require__.m (add only)";
12713
+ export let ensureChunk: "__webpack_require__.e";
12714
+ export let ensureChunkHandlers: "__webpack_require__.f";
12715
+ export let ensureChunkIncludeEntries: "__webpack_require__.f (include entries)";
12716
+ export let prefetchChunk: "__webpack_require__.E";
12717
+ export let prefetchChunkHandlers: "__webpack_require__.F";
12718
+ export let preloadChunk: "__webpack_require__.G";
12719
+ export let preloadChunkHandlers: "__webpack_require__.H";
12720
+ export let definePropertyGetters: "__webpack_require__.d";
12721
+ export let makeNamespaceObject: "__webpack_require__.r";
12722
+ export let createFakeNamespaceObject: "__webpack_require__.t";
12723
+ export let compatGetDefaultExport: "__webpack_require__.n";
12724
+ export let harmonyModuleDecorator: "__webpack_require__.hmd";
12725
+ export let nodeModuleDecorator: "__webpack_require__.nmd";
12726
+ export let getFullHash: "__webpack_require__.h";
12727
+ export let wasmInstances: "__webpack_require__.w";
12728
+ export let instantiateWasm: "__webpack_require__.v";
12729
+ export let uncaughtErrorHandler: "__webpack_require__.oe";
12730
+ export let scriptNonce: "__webpack_require__.nc";
12731
+ export let loadScript: "__webpack_require__.l";
12732
+ export let createScript: "__webpack_require__.ts";
12733
+ export let createScriptUrl: "__webpack_require__.tu";
12734
+ export let getTrustedTypesPolicy: "__webpack_require__.tt";
12735
+ export let chunkName: "__webpack_require__.cn";
12736
+ export let runtimeId: "__webpack_require__.j";
12737
+ export let getChunkScriptFilename: "__webpack_require__.u";
12738
+ export let getChunkCssFilename: "__webpack_require__.k";
12739
+ export let hasCssModules: "has css modules";
12740
+ export let getChunkUpdateScriptFilename: "__webpack_require__.hu";
12741
+ export let getChunkUpdateCssFilename: "__webpack_require__.hk";
12742
+ export let startup: "__webpack_require__.x";
12743
+ export let startupNoDefault: "__webpack_require__.x (no default handler)";
12744
+ export let startupOnlyAfter: "__webpack_require__.x (only after)";
12745
+ export let startupOnlyBefore: "__webpack_require__.x (only before)";
12746
+ export let chunkCallback: "webpackChunk";
12747
+ export let startupEntrypoint: "__webpack_require__.X";
12748
+ export let onChunksLoaded: "__webpack_require__.O";
12749
+ export let externalInstallChunk: "__webpack_require__.C";
12750
+ export let interceptModuleExecution: "__webpack_require__.i";
12751
+ export let global: "__webpack_require__.g";
12752
+ export let shareScopeMap: "__webpack_require__.S";
12753
+ export let initializeSharing: "__webpack_require__.I";
12754
+ export let currentRemoteGetScope: "__webpack_require__.R";
12755
+ export let getUpdateManifestFilename: "__webpack_require__.hmrF";
12756
+ export let hmrDownloadManifest: "__webpack_require__.hmrM";
12757
+ export let hmrDownloadUpdateHandlers: "__webpack_require__.hmrC";
12758
+ export let hmrModuleData: "__webpack_require__.hmrD";
12759
+ export let hmrInvalidateModuleHandlers: "__webpack_require__.hmrI";
12760
+ export let hmrRuntimeStatePrefix: "__webpack_require__.hmrS";
12761
+ export let amdDefine: "__webpack_require__.amdD";
12762
+ export let amdOptions: "__webpack_require__.amdO";
12763
+ export let system: "__webpack_require__.System";
12764
+ export let hasOwnProperty: "__webpack_require__.o";
12765
+ export let systemContext: "__webpack_require__.y";
12766
+ export let baseURI: "__webpack_require__.b";
12767
+ export let relativeUrl: "__webpack_require__.U";
12768
+ export let asyncModule: "__webpack_require__.a";
12250
12769
  }
12251
12770
  export const UsageState: Readonly<{
12252
12771
  Unused: 0;
@@ -12267,7 +12786,12 @@ declare namespace exports {
12267
12786
  ) => void;
12268
12787
  }
12269
12788
  export namespace dependencies {
12270
- export { ModuleDependency, ConstDependency, NullDependency };
12789
+ export {
12790
+ ModuleDependency,
12791
+ HarmonyImportDependency,
12792
+ ConstDependency,
12793
+ NullDependency
12794
+ };
12271
12795
  }
12272
12796
  export namespace ids {
12273
12797
  export {
@@ -12378,7 +12902,7 @@ declare namespace exports {
12378
12902
  export { ElectronTargetPlugin };
12379
12903
  }
12380
12904
  export namespace wasm {
12381
- export { AsyncWebAssemblyModulesPlugin };
12905
+ export { AsyncWebAssemblyModulesPlugin, EnableWasmLoadingPlugin };
12382
12906
  }
12383
12907
  export namespace library {
12384
12908
  export { AbstractLibraryPlugin, EnableLibraryPlugin };
@@ -12555,6 +13079,9 @@ declare namespace exports {
12555
13079
  export namespace schemes {
12556
13080
  export { HttpUriPlugin };
12557
13081
  }
13082
+ export namespace ids {
13083
+ export { SyncModuleIdsPlugin };
13084
+ }
12558
13085
  }
12559
13086
  export type WebpackPluginFunction = (
12560
13087
  this: Compiler,
@@ -12620,6 +13147,7 @@ declare namespace exports {
12620
13147
  Entry,
12621
13148
  EntryNormalized,
12622
13149
  EntryObject,
13150
+ FileCacheOptions,
12623
13151
  LibraryOptions,
12624
13152
  ModuleOptions,
12625
13153
  ResolveOptionsWebpackOptions as ResolveOptions,
@@ -12628,14 +13156,22 @@ declare namespace exports {
12628
13156
  RuleSetRule,
12629
13157
  RuleSetUse,
12630
13158
  RuleSetUseItem,
13159
+ StatsOptions,
12631
13160
  Configuration,
12632
13161
  WebpackOptionsNormalized,
12633
13162
  WebpackPluginInstance,
12634
13163
  Asset,
12635
13164
  AssetInfo,
13165
+ EntryOptions,
13166
+ PathData,
13167
+ AssetEmittedInfo,
12636
13168
  MultiStats,
12637
13169
  ParserState,
13170
+ ResolvePluginInstance,
13171
+ Resolver,
12638
13172
  Watching,
13173
+ Argument,
13174
+ Problem,
12639
13175
  StatsAsset,
12640
13176
  StatsChunk,
12641
13177
  StatsChunkGroup,