webpack 5.88.2 → 5.90.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of webpack might be problematic. Click here for more details.

Files changed (151) hide show
  1. package/README.md +3 -0
  2. package/bin/webpack.js +1 -3
  3. package/hot/log.js +0 -2
  4. package/lib/APIPlugin.js +1 -1
  5. package/lib/ChunkGraph.js +1 -1
  6. package/lib/CleanPlugin.js +12 -12
  7. package/lib/Compilation.js +25 -16
  8. package/lib/Compiler.js +13 -0
  9. package/lib/ConcatenationScope.js +2 -2
  10. package/lib/ContextModule.js +4 -4
  11. package/lib/ContextModuleFactory.js +1 -1
  12. package/lib/DependencyTemplate.js +3 -1
  13. package/lib/EnvironmentNotSupportAsyncWarning.js +52 -0
  14. package/lib/EvalDevToolModulePlugin.js +1 -1
  15. package/lib/EvalSourceMapDevToolPlugin.js +1 -1
  16. package/lib/ExportsInfoApiPlugin.js +2 -2
  17. package/lib/ExternalModule.js +47 -12
  18. package/lib/ExternalModuleFactoryPlugin.js +1 -1
  19. package/lib/FileSystemInfo.js +20 -3
  20. package/lib/FlagDependencyExportsPlugin.js +1 -1
  21. package/lib/Generator.js +1 -0
  22. package/lib/HotModuleReplacementPlugin.js +3 -3
  23. package/lib/LibManifestPlugin.js +4 -1
  24. package/lib/Module.js +2 -1
  25. package/lib/ModuleFilenameHelpers.js +1 -1
  26. package/lib/ModuleInfoHeaderPlugin.js +1 -1
  27. package/lib/MultiStats.js +2 -2
  28. package/lib/NodeStuffPlugin.js +48 -0
  29. package/lib/NormalModule.js +13 -11
  30. package/lib/NormalModuleFactory.js +7 -7
  31. package/lib/RuntimeTemplate.js +15 -11
  32. package/lib/SourceMapDevToolPlugin.js +2 -2
  33. package/lib/WebpackOptionsApply.js +4 -3
  34. package/lib/asset/AssetModulesPlugin.js +2 -3
  35. package/lib/cache/AddManagedPathsPlugin.js +6 -1
  36. package/lib/cache/IdleFileCachePlugin.js +12 -5
  37. package/lib/cache/PackFileCacheStrategy.js +3 -3
  38. package/lib/cache/ResolverCachePlugin.js +2 -2
  39. package/lib/config/browserslistTargetHandler.js +24 -5
  40. package/lib/config/defaults.js +87 -52
  41. package/lib/config/normalization.js +17 -18
  42. package/lib/config/target.js +5 -0
  43. package/lib/container/ContainerReferencePlugin.js +1 -1
  44. package/lib/css/CssExportsGenerator.js +14 -1
  45. package/lib/css/CssGenerator.js +14 -1
  46. package/lib/css/CssLoadingRuntimeModule.js +23 -23
  47. package/lib/css/CssModulesPlugin.js +68 -32
  48. package/lib/css/CssParser.js +8 -3
  49. package/lib/debug/ProfilingPlugin.js +2 -2
  50. package/lib/dependencies/CachedConstDependency.js +8 -1
  51. package/lib/dependencies/CommonJsFullRequireDependency.js +27 -6
  52. package/lib/dependencies/CommonJsImportsParserPlugin.js +21 -5
  53. package/lib/dependencies/ContextElementDependency.js +1 -1
  54. package/lib/dependencies/ExternalModuleDependency.js +98 -0
  55. package/lib/dependencies/ExternalModuleInitFragment.js +124 -0
  56. package/lib/dependencies/HarmonyAcceptDependency.js +1 -1
  57. package/lib/dependencies/HarmonyDetectionParserPlugin.js +7 -1
  58. package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +18 -18
  59. package/lib/dependencies/HarmonyExportInitFragment.js +4 -4
  60. package/lib/dependencies/HarmonyImportDependency.js +4 -4
  61. package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +6 -6
  62. package/lib/dependencies/HarmonyImportSpecifierDependency.js +13 -63
  63. package/lib/dependencies/ImportDependency.js +26 -6
  64. package/lib/dependencies/JsonExportsDependency.js +1 -1
  65. package/lib/dependencies/LoaderPlugin.js +2 -1
  66. package/lib/dependencies/PureExpressionDependency.js +12 -4
  67. package/lib/dependencies/RequireIncludeDependency.js +1 -1
  68. package/lib/dependencies/WebpackIsIncludedDependency.js +1 -1
  69. package/lib/dependencies/WorkerPlugin.js +7 -1
  70. package/lib/esm/ModuleChunkLoadingRuntimeModule.js +6 -6
  71. package/lib/hmr/HotModuleReplacement.runtime.js +3 -5
  72. package/lib/hmr/lazyCompilationBackend.js +4 -4
  73. package/lib/ids/DeterministicModuleIdsPlugin.js +1 -1
  74. package/lib/index.js +4 -0
  75. package/lib/javascript/JavascriptGenerator.js +16 -1
  76. package/lib/javascript/JavascriptModulesPlugin.js +33 -33
  77. package/lib/javascript/JavascriptParser.js +18 -6
  78. package/lib/json/JsonGenerator.js +1 -1
  79. package/lib/library/AmdLibraryPlugin.js +5 -1
  80. package/lib/library/AssignLibraryPlugin.js +1 -1
  81. package/lib/library/SystemLibraryPlugin.js +1 -1
  82. package/lib/library/UmdLibraryPlugin.js +39 -39
  83. package/lib/logging/createConsoleLogger.js +1 -19
  84. package/lib/node/ReadFileChunkLoadingRuntimeModule.js +8 -8
  85. package/lib/node/RequireChunkLoadingRuntimeModule.js +8 -8
  86. package/lib/node/nodeConsole.js +1 -5
  87. package/lib/optimize/ConcatenatedModule.js +7 -7
  88. package/lib/optimize/InnerGraphPlugin.js +9 -1
  89. package/lib/optimize/ModuleConcatenationPlugin.js +2 -2
  90. package/lib/optimize/RemoveParentModulesPlugin.js +123 -47
  91. package/lib/optimize/SideEffectsFlagPlugin.js +15 -3
  92. package/lib/optimize/SplitChunksPlugin.js +16 -16
  93. package/lib/prefetch/ChunkPrefetchStartupRuntimeModule.js +2 -2
  94. package/lib/rules/RuleSetCompiler.js +1 -1
  95. package/lib/runtime/AutoPublicPathRuntimeModule.js +2 -2
  96. package/lib/runtime/GetChunkFilenameRuntimeModule.js +4 -4
  97. package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +4 -4
  98. package/lib/runtime/LoadScriptRuntimeModule.js +2 -2
  99. package/lib/runtime/StartupChunkDependenciesRuntimeModule.js +23 -22
  100. package/lib/runtime/StartupEntrypointRuntimeModule.js +2 -2
  101. package/lib/schemes/HttpUriPlugin.js +1 -1
  102. package/lib/serialization/FileMiddleware.js +4 -4
  103. package/lib/serialization/ObjectMiddleware.js +4 -4
  104. package/lib/sharing/ConsumeSharedPlugin.js +5 -5
  105. package/lib/sharing/ConsumeSharedRuntimeModule.js +8 -4
  106. package/lib/sharing/ProvideSharedModule.js +2 -2
  107. package/lib/sharing/SharePlugin.js +2 -2
  108. package/lib/sharing/ShareRuntimeModule.js +1 -1
  109. package/lib/sharing/utils.js +24 -28
  110. package/lib/stats/DefaultStatsFactoryPlugin.js +10 -10
  111. package/lib/stats/DefaultStatsPresetPlugin.js +3 -7
  112. package/lib/stats/DefaultStatsPrinterPlugin.js +34 -31
  113. package/lib/util/chainedImports.js +96 -0
  114. package/lib/util/cleverMerge.js +4 -4
  115. package/lib/util/hash/xxhash64.js +2 -2
  116. package/lib/util/identifier.js +2 -2
  117. package/lib/util/internalSerializables.js +6 -0
  118. package/lib/util/runtime.js +18 -1
  119. package/lib/util/semver.js +19 -24
  120. package/lib/util/smartGrouping.js +1 -1
  121. package/lib/wasm-async/AsyncWasmLoadingRuntimeModule.js +1 -1
  122. package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +2 -2
  123. package/lib/wasm-async/AsyncWebAssemblyParser.js +6 -0
  124. package/lib/wasm-sync/WasmChunkLoadingRuntimeModule.js +2 -2
  125. package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +2 -2
  126. package/lib/web/JsonpChunkLoadingRuntimeModule.js +13 -13
  127. package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +6 -6
  128. package/package.json +23 -23
  129. package/schemas/WebpackOptions.check.js +1 -1
  130. package/schemas/WebpackOptions.json +140 -32
  131. package/schemas/plugins/css/CssAutoGeneratorOptions.check.d.ts +7 -0
  132. package/schemas/plugins/css/CssAutoGeneratorOptions.check.js +6 -0
  133. package/schemas/plugins/css/CssAutoGeneratorOptions.json +3 -0
  134. package/schemas/plugins/css/CssAutoParserOptions.check.d.ts +7 -0
  135. package/schemas/plugins/css/CssAutoParserOptions.check.js +6 -0
  136. package/schemas/plugins/css/CssAutoParserOptions.json +3 -0
  137. package/schemas/plugins/css/CssGeneratorOptions.check.js +1 -1
  138. package/schemas/plugins/css/CssGlobalGeneratorOptions.check.d.ts +7 -0
  139. package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +6 -0
  140. package/schemas/plugins/css/CssGlobalGeneratorOptions.json +3 -0
  141. package/schemas/plugins/css/CssGlobalParserOptions.check.d.ts +7 -0
  142. package/schemas/plugins/css/CssGlobalParserOptions.check.js +6 -0
  143. package/schemas/plugins/css/CssGlobalParserOptions.json +3 -0
  144. package/schemas/plugins/css/CssModuleGeneratorOptions.check.d.ts +7 -0
  145. package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +6 -0
  146. package/schemas/plugins/css/CssModuleGeneratorOptions.json +3 -0
  147. package/schemas/plugins/css/CssModuleParserOptions.check.d.ts +7 -0
  148. package/schemas/plugins/css/CssModuleParserOptions.check.js +6 -0
  149. package/schemas/plugins/css/CssModuleParserOptions.json +3 -0
  150. package/schemas/plugins/css/CssParserOptions.check.js +1 -1
  151. package/types.d.ts +180 -22
package/types.d.ts CHANGED
@@ -1518,10 +1518,15 @@ declare interface CodeGenerationContext {
1518
1518
  chunkGraph: ChunkGraph;
1519
1519
 
1520
1520
  /**
1521
- * the runtimes code should be generated for
1521
+ * the runtime code should be generated for
1522
1522
  */
1523
1523
  runtime: RuntimeSpec;
1524
1524
 
1525
+ /**
1526
+ * the runtimes code should be generated for
1527
+ */
1528
+ runtimes?: RuntimeSpec[];
1529
+
1525
1530
  /**
1526
1531
  * when in concatenated module, information about other concatenated modules
1527
1532
  */
@@ -2242,6 +2247,7 @@ declare class Compiler {
2242
2247
  recordsOutputPath: null | string;
2243
2248
  records: object;
2244
2249
  managedPaths: Set<string | RegExp>;
2250
+ unmanagedPaths: Set<string | RegExp>;
2245
2251
  immutablePaths: Set<string | RegExp>;
2246
2252
  modifiedFiles?: ReadonlySet<string>;
2247
2253
  removedFiles?: ReadonlySet<string>;
@@ -2882,14 +2888,84 @@ type CreateStatsOptionsContext = KnownCreateStatsOptionsContext &
2882
2888
  Record<string, any>;
2883
2889
 
2884
2890
  /**
2885
- * Options for css handling.
2891
+ * Generator options for css/auto modules.
2892
+ */
2893
+ declare interface CssAutoGeneratorOptions {
2894
+ /**
2895
+ * Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
2896
+ */
2897
+ exportsOnly?: boolean;
2898
+ }
2899
+
2900
+ /**
2901
+ * Parser options for css/auto modules.
2902
+ */
2903
+ declare interface CssAutoParserOptions {
2904
+ /**
2905
+ * Use ES modules named export for css exports.
2906
+ */
2907
+ namedExports?: boolean;
2908
+ }
2909
+
2910
+ /**
2911
+ * Generator options for css modules.
2912
+ */
2913
+ declare interface CssGeneratorOptions {
2914
+ /**
2915
+ * Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
2916
+ */
2917
+ exportsOnly?: boolean;
2918
+ }
2919
+
2920
+ /**
2921
+ * Generator options for css/global modules.
2886
2922
  */
2887
- declare interface CssExperimentOptions {
2923
+ declare interface CssGlobalGeneratorOptions {
2888
2924
  /**
2889
2925
  * Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
2890
2926
  */
2891
2927
  exportsOnly?: boolean;
2892
2928
  }
2929
+
2930
+ /**
2931
+ * Parser options for css/global modules.
2932
+ */
2933
+ declare interface CssGlobalParserOptions {
2934
+ /**
2935
+ * Use ES modules named export for css exports.
2936
+ */
2937
+ namedExports?: boolean;
2938
+ }
2939
+
2940
+ /**
2941
+ * Generator options for css/module modules.
2942
+ */
2943
+ declare interface CssModuleGeneratorOptions {
2944
+ /**
2945
+ * Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
2946
+ */
2947
+ exportsOnly?: boolean;
2948
+ }
2949
+
2950
+ /**
2951
+ * Parser options for css/module modules.
2952
+ */
2953
+ declare interface CssModuleParserOptions {
2954
+ /**
2955
+ * Use ES modules named export for css exports.
2956
+ */
2957
+ namedExports?: boolean;
2958
+ }
2959
+
2960
+ /**
2961
+ * Parser options for css modules.
2962
+ */
2963
+ declare interface CssParserOptions {
2964
+ /**
2965
+ * Use ES modules named export for css exports.
2966
+ */
2967
+ namedExports?: boolean;
2968
+ }
2893
2969
  type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
2894
2970
  declare class DefinePlugin {
2895
2971
  /**
@@ -3065,10 +3141,15 @@ declare interface DependencyTemplateContext {
3065
3141
  module: Module;
3066
3142
 
3067
3143
  /**
3068
- * current runtimes, for which code is generated
3144
+ * current runtime, for which code is generated
3069
3145
  */
3070
3146
  runtime: RuntimeSpec;
3071
3147
 
3148
+ /**
3149
+ * current runtimes, for which code is generated
3150
+ */
3151
+ runtimes?: RuntimeSpec[];
3152
+
3072
3153
  /**
3073
3154
  * mutable array of init fragments for the current module
3074
3155
  */
@@ -3083,6 +3164,11 @@ declare interface DependencyTemplateContext {
3083
3164
  * the code generation results
3084
3165
  */
3085
3166
  codeGenerationResults: CodeGenerationResults;
3167
+
3168
+ /**
3169
+ * chunkInitFragments
3170
+ */
3171
+ chunkInitFragments: InitFragment<GenerateContext>[];
3086
3172
  }
3087
3173
  declare abstract class DependencyTemplates {
3088
3174
  get(dependency: DependencyConstructor): undefined | DependencyTemplate;
@@ -3154,13 +3240,6 @@ declare interface DeterministicModuleIdsPluginOptions {
3154
3240
  */
3155
3241
  failOnConflict?: boolean;
3156
3242
  }
3157
-
3158
- /**
3159
- * Options for the webpack-dev-server.
3160
- */
3161
- declare interface DevServer {
3162
- [index: string]: any;
3163
- }
3164
3243
  declare class DllPlugin {
3165
3244
  constructor(options: DllPluginOptions);
3166
3245
  options: {
@@ -3670,6 +3749,11 @@ declare interface Environment {
3670
3749
  */
3671
3750
  arrowFunction?: boolean;
3672
3751
 
3752
+ /**
3753
+ * The environment supports async function and await ('async function () { await ... }').
3754
+ */
3755
+ asyncFunction?: boolean;
3756
+
3673
3757
  /**
3674
3758
  * The environment supports BigInt as literal (123n).
3675
3759
  */
@@ -3840,7 +3924,7 @@ declare interface ExperimentsExtra {
3840
3924
  /**
3841
3925
  * Enable css support.
3842
3926
  */
3843
- css?: boolean | CssExperimentOptions;
3927
+ css?: boolean;
3844
3928
 
3845
3929
  /**
3846
3930
  * Compile entrypoints and import()s only when they are accessed.
@@ -3861,7 +3945,7 @@ declare interface ExperimentsNormalizedExtra {
3861
3945
  /**
3862
3946
  * Enable css support.
3863
3947
  */
3864
- css?: false | CssExperimentOptions;
3948
+ css?: boolean;
3865
3949
 
3866
3950
  /**
3867
3951
  * Compile entrypoints and import()s only when they are accessed.
@@ -4525,7 +4609,7 @@ declare interface FileSystem {
4525
4609
  | "binary"
4526
4610
  | ((
4527
4611
  arg0?: null | NodeJS.ErrnoException,
4528
- arg1?: (string | Buffer)[] | (typeof Dirent)[]
4612
+ arg1?: (string | Buffer)[] | Dirent[]
4529
4613
  ) => void)
4530
4614
  | ReaddirOptions
4531
4615
  | "utf-8"
@@ -4536,7 +4620,7 @@ declare interface FileSystem {
4536
4620
  | "buffer",
4537
4621
  arg2?: (
4538
4622
  arg0?: null | NodeJS.ErrnoException,
4539
- arg1?: (string | Buffer)[] | (typeof Dirent)[]
4623
+ arg1?: (string | Buffer)[] | Dirent[]
4540
4624
  ) => void
4541
4625
  ) => void;
4542
4626
  readJson?: {
@@ -4585,6 +4669,8 @@ declare abstract class FileSystemInfo {
4585
4669
  contextTshQueue: AsyncQueue<string, string, null | ContextTimestampAndHash>;
4586
4670
  managedItemQueue: AsyncQueue<string, string, null | string>;
4587
4671
  managedItemDirectoryQueue: AsyncQueue<string, string, Set<string>>;
4672
+ unmanagedPathsWithSlash: string[];
4673
+ unmanagedPathsRegExps: RegExp[];
4588
4674
  managedPaths: (string | RegExp)[];
4589
4675
  managedPathsWithSlash: string[];
4590
4676
  managedPathsRegExps: RegExp[];
@@ -4698,6 +4784,11 @@ declare interface GenerateContext {
4698
4784
  */
4699
4785
  runtime: RuntimeSpec;
4700
4786
 
4787
+ /**
4788
+ * the runtimes
4789
+ */
4790
+ runtimes?: RuntimeSpec[];
4791
+
4701
4792
  /**
4702
4793
  * when in concatenated module, information about other concatenated modules
4703
4794
  */
@@ -4752,6 +4843,26 @@ declare interface GeneratorOptionsByModuleTypeKnown {
4752
4843
  */
4753
4844
  "asset/resource"?: AssetResourceGeneratorOptions;
4754
4845
 
4846
+ /**
4847
+ * Generator options for css modules.
4848
+ */
4849
+ css?: CssGeneratorOptions;
4850
+
4851
+ /**
4852
+ * Generator options for css/auto modules.
4853
+ */
4854
+ "css/auto"?: CssAutoGeneratorOptions;
4855
+
4856
+ /**
4857
+ * Generator options for css/global modules.
4858
+ */
4859
+ "css/global"?: CssGlobalGeneratorOptions;
4860
+
4861
+ /**
4862
+ * Generator options for css/module modules.
4863
+ */
4864
+ "css/module"?: CssModuleGeneratorOptions;
4865
+
4755
4866
  /**
4756
4867
  * No generator options are supported for this module type.
4757
4868
  */
@@ -4846,6 +4957,11 @@ declare interface HandleModuleCreationOptions {
4846
4957
  * connect the resolved module with the origin module
4847
4958
  */
4848
4959
  connectOrigin?: boolean;
4960
+
4961
+ /**
4962
+ * check the cycle dependencies of the created module
4963
+ */
4964
+ checkCycle?: boolean;
4849
4965
  }
4850
4966
  declare class HarmonyImportDependency extends ModuleDependency {
4851
4967
  constructor(request: string, sourceOrder: number, assertions?: Assertions);
@@ -5521,13 +5637,19 @@ declare class JavascriptParser extends Parser {
5521
5637
  >;
5522
5638
  memberChainOfCallMemberChain: HookMap<
5523
5639
  SyncBailHook<
5524
- [Expression, string[], CallExpression, string[]],
5640
+ [Expression, string[], CallExpression, string[], [number, number][]],
5525
5641
  boolean | void
5526
5642
  >
5527
5643
  >;
5528
5644
  callMemberChainOfCallMemberChain: HookMap<
5529
5645
  SyncBailHook<
5530
- [CallExpression, string[], CallExpression, string[]],
5646
+ [
5647
+ CallExpression,
5648
+ string[],
5649
+ CallExpression,
5650
+ string[],
5651
+ [number, number][]
5652
+ ],
5531
5653
  boolean | void
5532
5654
  >
5533
5655
  >;
@@ -6817,7 +6939,7 @@ declare interface LazyCompilationDefaultBackendOptions {
6817
6939
  /**
6818
6940
  * Specifies where to listen to from the server.
6819
6941
  */
6820
- listen?: number | ListenOptions | ((server: typeof Server) => void);
6942
+ listen?: number | ListenOptions | ((server: Server) => void);
6821
6943
 
6822
6944
  /**
6823
6945
  * Specifies the protocol the client should use to connect to the server.
@@ -6830,7 +6952,7 @@ declare interface LazyCompilationDefaultBackendOptions {
6830
6952
  server?:
6831
6953
  | ServerOptionsImport<typeof IncomingMessage>
6832
6954
  | ServerOptionsHttps<typeof IncomingMessage, typeof ServerResponse>
6833
- | (() => typeof Server);
6955
+ | (() => Server);
6834
6956
  }
6835
6957
 
6836
6958
  /**
@@ -8311,12 +8433,12 @@ declare interface NodeOptions {
8311
8433
  /**
8312
8434
  * Include a polyfill for the '__dirname' variable.
8313
8435
  */
8314
- __dirname?: boolean | "warn-mock" | "mock" | "eval-only";
8436
+ __dirname?: boolean | "warn-mock" | "mock" | "node-module" | "eval-only";
8315
8437
 
8316
8438
  /**
8317
8439
  * Include a polyfill for the '__filename' variable.
8318
8440
  */
8319
- __filename?: boolean | "warn-mock" | "mock" | "eval-only";
8441
+ __filename?: boolean | "warn-mock" | "mock" | "node-module" | "eval-only";
8320
8442
 
8321
8443
  /**
8322
8444
  * Include a polyfill for the 'global' variable.
@@ -9752,6 +9874,26 @@ declare interface ParserOptionsByModuleTypeKnown {
9752
9874
  */
9753
9875
  "asset/source"?: EmptyParserOptions;
9754
9876
 
9877
+ /**
9878
+ * Parser options for css modules.
9879
+ */
9880
+ css?: CssParserOptions;
9881
+
9882
+ /**
9883
+ * Parser options for css/auto modules.
9884
+ */
9885
+ "css/auto"?: CssAutoParserOptions;
9886
+
9887
+ /**
9888
+ * Parser options for css/global modules.
9889
+ */
9890
+ "css/global"?: CssGlobalParserOptions;
9891
+
9892
+ /**
9893
+ * Parser options for css/module modules.
9894
+ */
9895
+ "css/module"?: CssModuleParserOptions;
9896
+
9755
9897
  /**
9756
9898
  * Parser options for javascript modules.
9757
9899
  */
@@ -11257,6 +11399,7 @@ declare abstract class RuntimeTemplate {
11257
11399
  isModule(): undefined | boolean;
11258
11400
  supportsConst(): undefined | boolean;
11259
11401
  supportsArrowFunction(): undefined | boolean;
11402
+ supportsAsyncFunction(): undefined | boolean;
11260
11403
  supportsOptionalChaining(): undefined | boolean;
11261
11404
  supportsForOf(): undefined | boolean;
11262
11405
  supportsDestructuring(): undefined | boolean;
@@ -11939,6 +12082,11 @@ declare interface SnapshotOptionsWebpackOptions {
11939
12082
  */
11940
12083
  timestamp?: boolean;
11941
12084
  };
12085
+
12086
+ /**
12087
+ * List of paths that are not managed by a package manager and the contents are subject to change.
12088
+ */
12089
+ unmanagedPaths?: (string | RegExp)[];
11942
12090
  }
11943
12091
  declare abstract class SortableSet<T> extends Set<T> {
11944
12092
  /**
@@ -13292,7 +13440,7 @@ declare interface WebpackOptionsNormalized {
13292
13440
  /**
13293
13441
  * Options for the webpack-dev-server.
13294
13442
  */
13295
- devServer?: DevServer;
13443
+ devServer?: false | { [index: string]: any };
13296
13444
 
13297
13445
  /**
13298
13446
  * A developer tool to enhance debugging (false | eval | [inline-|hidden-|eval-][nosources-][cheap-[module-]]source-map).
@@ -13639,6 +13787,11 @@ declare namespace exports {
13639
13787
  export let matchPart: (str: string, test: Matcher) => boolean;
13640
13788
  export let matchObject: (obj: MatchObject, str: string) => boolean;
13641
13789
  }
13790
+ export namespace OptimizationStages {
13791
+ export let STAGE_BASIC: -10;
13792
+ export let STAGE_DEFAULT: 0;
13793
+ export let STAGE_ADVANCED: 10;
13794
+ }
13642
13795
  export namespace RuntimeGlobals {
13643
13796
  export let require: "__webpack_require__";
13644
13797
  export let requireScope: "__webpack_require__.*";
@@ -13949,6 +14102,10 @@ declare namespace exports {
13949
14102
  export let runtimeEqual: (a: RuntimeSpec, b: RuntimeSpec) => boolean;
13950
14103
  export let compareRuntime: (a: RuntimeSpec, b: RuntimeSpec) => 0 | 1 | -1;
13951
14104
  export let mergeRuntime: (a: RuntimeSpec, b: RuntimeSpec) => RuntimeSpec;
14105
+ export let deepMergeRuntime: (
14106
+ runtimes: RuntimeSpec[],
14107
+ runtime: RuntimeSpec
14108
+ ) => RuntimeSpec;
13952
14109
  export let mergeRuntimeCondition: (
13953
14110
  a: RuntimeCondition,
13954
14111
  b: RuntimeCondition,
@@ -14116,6 +14273,7 @@ declare namespace exports {
14116
14273
  EntryOptions,
14117
14274
  PathData,
14118
14275
  AssetEmittedInfo,
14276
+ MultiCompilerOptions,
14119
14277
  MultiStats,
14120
14278
  ResolveData,
14121
14279
  ParserState,