webpack 5.102.1 → 5.103.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (118) hide show
  1. package/README.md +121 -134
  2. package/lib/CompatibilityPlugin.js +25 -2
  3. package/lib/Compilation.js +25 -2
  4. package/lib/ConcatenationScope.js +0 -15
  5. package/lib/CssModule.js +6 -1
  6. package/lib/DefinePlugin.js +11 -11
  7. package/lib/Dependency.js +8 -1
  8. package/lib/DependencyTemplate.js +1 -0
  9. package/lib/DotenvPlugin.js +457 -0
  10. package/lib/EnvironmentPlugin.js +19 -16
  11. package/lib/EvalSourceMapDevToolPlugin.js +16 -0
  12. package/lib/ExportsInfo.js +6 -2
  13. package/lib/ExternalModule.js +20 -28
  14. package/lib/ExternalModuleFactoryPlugin.js +10 -8
  15. package/lib/ExternalsPlugin.js +2 -1
  16. package/lib/ManifestPlugin.js +235 -0
  17. package/lib/Module.js +3 -0
  18. package/lib/ModuleGraph.js +2 -1
  19. package/lib/ModuleSourceTypesConstants.js +0 -6
  20. package/lib/MultiCompiler.js +1 -1
  21. package/lib/NodeStuffPlugin.js +419 -121
  22. package/lib/NormalModule.js +17 -16
  23. package/lib/RuntimeGlobals.js +22 -4
  24. package/lib/RuntimePlugin.js +27 -6
  25. package/lib/RuntimeTemplate.js +115 -56
  26. package/lib/SourceMapDevToolPlugin.js +20 -0
  27. package/lib/WebpackOptionsApply.js +33 -9
  28. package/lib/asset/AssetBytesGenerator.js +1 -1
  29. package/lib/asset/AssetGenerator.js +1 -2
  30. package/lib/asset/AssetSourceGenerator.js +1 -1
  31. package/lib/config/browserslistTargetHandler.js +5 -0
  32. package/lib/config/defaults.js +98 -18
  33. package/lib/config/normalization.js +2 -1
  34. package/lib/config/target.js +6 -0
  35. package/lib/css/CssGenerator.js +283 -57
  36. package/lib/css/CssLoadingRuntimeModule.js +2 -0
  37. package/lib/css/CssMergeStyleSheetsRuntimeModule.js +56 -0
  38. package/lib/css/CssModulesPlugin.js +84 -34
  39. package/lib/css/CssParser.js +1174 -667
  40. package/lib/css/walkCssTokens.js +97 -0
  41. package/lib/dependencies/CommonJsImportsParserPlugin.js +0 -9
  42. package/lib/dependencies/CommonJsPlugin.js +12 -0
  43. package/lib/dependencies/CssIcssExportDependency.js +247 -8
  44. package/lib/dependencies/CssIcssFromIdentifierDependency.js +124 -0
  45. package/lib/dependencies/CssIcssGlobalIdentifierDependency.js +48 -0
  46. package/lib/dependencies/CssIcssImportDependency.js +60 -54
  47. package/lib/dependencies/CssIcssLocalIdentifierDependency.js +61 -0
  48. package/lib/dependencies/{CssSelfLocalIdentifierDependency.js → CssIcssSelfLocalIdentifierDependency.js} +88 -10
  49. package/lib/dependencies/CssIcssSymbolDependency.js +31 -29
  50. package/lib/dependencies/CssImportDependency.js +15 -5
  51. package/lib/dependencies/ExternalModuleInitFragment.js +1 -1
  52. package/lib/dependencies/ExternalModuleInitFragmentDependency.js +95 -0
  53. package/lib/dependencies/HarmonyAcceptDependency.js +6 -1
  54. package/lib/dependencies/HarmonyAcceptImportDependency.js +2 -1
  55. package/lib/dependencies/HarmonyEvaluatedImportSpecifierDependency.js +12 -1
  56. package/lib/dependencies/HarmonyExportDependencyParserPlugin.js +32 -21
  57. package/lib/dependencies/HarmonyExportImportedSpecifierDependency.js +12 -8
  58. package/lib/dependencies/HarmonyImportDependency.js +23 -27
  59. package/lib/dependencies/HarmonyImportDependencyParserPlugin.js +28 -69
  60. package/lib/dependencies/HarmonyImportSideEffectDependency.js +4 -3
  61. package/lib/dependencies/HarmonyImportSpecifierDependency.js +10 -8
  62. package/lib/dependencies/ImportDependency.js +8 -2
  63. package/lib/dependencies/ImportEagerDependency.js +6 -3
  64. package/lib/dependencies/ImportMetaPlugin.js +97 -9
  65. package/lib/dependencies/ImportParserPlugin.js +19 -21
  66. package/lib/dependencies/ImportPhase.js +121 -0
  67. package/lib/dependencies/ImportWeakDependency.js +6 -3
  68. package/lib/dependencies/ModuleDependency.js +5 -1
  69. package/lib/dependencies/ModuleHotAcceptDependency.js +1 -1
  70. package/lib/esm/ExportWebpackRequireRuntimeModule.js +1 -8
  71. package/lib/hmr/LazyCompilationPlugin.js +1 -0
  72. package/lib/ids/IdHelpers.js +4 -1
  73. package/lib/index.js +6 -0
  74. package/lib/javascript/ChunkHelpers.js +16 -5
  75. package/lib/javascript/JavascriptGenerator.js +101 -101
  76. package/lib/javascript/JavascriptModulesPlugin.js +23 -13
  77. package/lib/javascript/JavascriptParser.js +142 -38
  78. package/lib/json/JsonParser.js +7 -1
  79. package/lib/library/ModuleLibraryPlugin.js +0 -10
  80. package/lib/library/SystemLibraryPlugin.js +4 -0
  81. package/lib/library/UmdLibraryPlugin.js +1 -1
  82. package/lib/node/NodeTargetPlugin.js +9 -1
  83. package/lib/node/ReadFileCompileWasmPlugin.js +0 -2
  84. package/lib/optimize/ConcatenatedModule.js +161 -135
  85. package/lib/runtime/AsyncModuleRuntimeModule.js +28 -18
  86. package/lib/runtime/AutoPublicPathRuntimeModule.js +8 -3
  87. package/lib/runtime/MakeDeferredNamespaceObjectRuntime.js +89 -55
  88. package/lib/util/comparators.js +4 -3
  89. package/lib/util/internalSerializables.js +4 -4
  90. package/lib/util/jsonParseEvenBetterErrors.js +10 -0
  91. package/lib/wasm/EnableWasmLoadingPlugin.js +10 -4
  92. package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +8 -5
  93. package/lib/wasm-sync/WebAssemblyJavascriptGenerator.js +8 -4
  94. package/lib/web/FetchCompileWasmPlugin.js +0 -2
  95. package/lib/webpack.js +85 -82
  96. package/module.d.ts +5 -0
  97. package/package.json +16 -14
  98. package/schemas/WebpackOptions.check.js +1 -1
  99. package/schemas/WebpackOptions.json +109 -27
  100. package/schemas/plugins/ManifestPlugin.check.d.ts +7 -0
  101. package/schemas/plugins/ManifestPlugin.check.js +6 -0
  102. package/schemas/plugins/ManifestPlugin.json +98 -0
  103. package/schemas/plugins/SourceMapDevToolPlugin.check.js +1 -1
  104. package/schemas/plugins/SourceMapDevToolPlugin.json +16 -3
  105. package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
  106. package/schemas/plugins/container/ContainerReferencePlugin.json +4 -1
  107. package/schemas/plugins/container/ExternalsType.check.js +1 -1
  108. package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
  109. package/schemas/plugins/container/ModuleFederationPlugin.json +4 -1
  110. package/schemas/plugins/css/CssAutoParserOptions.check.js +1 -1
  111. package/schemas/plugins/css/CssGlobalGeneratorOptions.check.js +1 -1
  112. package/schemas/plugins/css/CssGlobalParserOptions.check.js +1 -1
  113. package/schemas/plugins/css/CssModuleGeneratorOptions.check.js +1 -1
  114. package/schemas/plugins/css/CssModuleParserOptions.check.js +1 -1
  115. package/schemas/plugins/css/CssParserOptions.check.js +1 -1
  116. package/schemas/plugins/json/JsonModulesPluginParser.check.js +1 -1
  117. package/types.d.ts +560 -293
  118. package/lib/dependencies/CssLocalIdentifierDependency.js +0 -250
package/types.d.ts CHANGED
@@ -68,6 +68,7 @@ import {
68
68
  SequenceExpression,
69
69
  SimpleCallExpression,
70
70
  SimpleLiteral,
71
+ SourceLocation,
71
72
  SpreadElement,
72
73
  StaticBlock,
73
74
  Super,
@@ -90,9 +91,12 @@ import {
90
91
  import {
91
92
  IncomingMessage,
92
93
  Server as ServerImportHttp,
93
- ServerOptions
94
+ ServerOptions as ServerOptionsImportHttp
94
95
  } from "http";
95
- import { Server as ServerImportHttps } from "https";
96
+ import {
97
+ Server as ServerImportHttps,
98
+ ServerOptions as ServerOptionsImportHttps
99
+ } from "https";
96
100
  import {
97
101
  Session as SessionImportInspectorClass_1,
98
102
  Session as SessionImportInspectorClass_2
@@ -119,7 +123,6 @@ import {
119
123
  TapOptions,
120
124
  TypedHookMap
121
125
  } from "tapable";
122
- import { SecureContextOptions, TlsOptions } from "tls";
123
126
  import { URL } from "url";
124
127
  import { Context } from "vm";
125
128
 
@@ -989,18 +992,18 @@ declare interface Bootstrap {
989
992
  allowInlineStartup: boolean;
990
993
  }
991
994
  type BufferEncoding =
992
- | "base64"
993
- | "base64url"
994
- | "hex"
995
- | "binary"
995
+ | "ascii"
996
996
  | "utf8"
997
997
  | "utf-8"
998
998
  | "utf16le"
999
999
  | "utf-16le"
1000
- | "latin1"
1001
- | "ascii"
1002
1000
  | "ucs2"
1003
- | "ucs-2";
1001
+ | "ucs-2"
1002
+ | "base64"
1003
+ | "base64url"
1004
+ | "latin1"
1005
+ | "binary"
1006
+ | "hex";
1004
1007
  type BufferEncodingOption = "buffer" | { encoding: "buffer" };
1005
1008
  declare interface BufferEntry {
1006
1009
  map?: null | RawSourceMap;
@@ -1718,17 +1721,17 @@ declare interface ChunkRenderContextCssModulesPlugin {
1718
1721
  /**
1719
1722
  * the chunk
1720
1723
  */
1721
- chunk: Chunk;
1724
+ chunk?: Chunk;
1722
1725
 
1723
1726
  /**
1724
1727
  * the chunk graph
1725
1728
  */
1726
- chunkGraph: ChunkGraph;
1729
+ chunkGraph?: ChunkGraph;
1727
1730
 
1728
1731
  /**
1729
1732
  * results of code generation
1730
1733
  */
1731
- codeGenerationResults: CodeGenerationResults;
1734
+ codeGenerationResults?: CodeGenerationResults;
1732
1735
 
1733
1736
  /**
1734
1737
  * the runtime template
@@ -1739,6 +1742,16 @@ declare interface ChunkRenderContextCssModulesPlugin {
1739
1742
  * undo path to css file
1740
1743
  */
1741
1744
  undoPath: string;
1745
+
1746
+ /**
1747
+ * moduleFactoryCache
1748
+ */
1749
+ moduleFactoryCache: WeakMap<Source, ModuleFactoryCacheEntry>;
1750
+
1751
+ /**
1752
+ * content
1753
+ */
1754
+ moduleSourceContent: Source;
1742
1755
  }
1743
1756
  declare interface ChunkRenderContextJavascriptModulesPlugin {
1744
1757
  /**
@@ -2097,6 +2110,11 @@ declare interface CommentCssParser {
2097
2110
  range: [number, number];
2098
2111
  loc: { start: Position; end: Position };
2099
2112
  }
2113
+ type CommentJavascriptParser = CommentImport & {
2114
+ start: number;
2115
+ end: number;
2116
+ loc: SourceLocation;
2117
+ };
2100
2118
  declare interface CommonJsImportSettings {
2101
2119
  name?: string;
2102
2120
  context: string;
@@ -2952,7 +2970,6 @@ declare class ConcatenationScope {
2952
2970
  getRawExport(exportName: string): undefined | string;
2953
2971
  setRawExportMap(exportName: string, expression: string): void;
2954
2972
  registerNamespaceExport(symbol: string): void;
2955
- registerUsedName(symbol: string): boolean;
2956
2973
  createModuleReference(
2957
2974
  module: Module,
2958
2975
  __1: Partial<ModuleReferenceOptions>
@@ -2963,7 +2980,6 @@ declare class ConcatenationScope {
2963
2980
  ): null | (ModuleReferenceOptions & { index: number });
2964
2981
  static DEFAULT_EXPORT: string;
2965
2982
  static NAMESPACE_OBJECT_EXPORT: string;
2966
- static chunkUsedNames: WeakMap<Chunk, Set<string>>;
2967
2983
  }
2968
2984
 
2969
2985
  /**
@@ -3000,6 +3016,11 @@ declare interface Configuration {
3000
3016
  */
3001
3017
  devtool?: string | false;
3002
3018
 
3019
+ /**
3020
+ * Enable and configure the Dotenv plugin to load environment variables from .env files.
3021
+ */
3022
+ dotenv?: boolean | DotenvPluginOptions;
3023
+
3003
3024
  /**
3004
3025
  * The entry point(s) of the compilation.
3005
3026
  */
@@ -3066,7 +3087,10 @@ declare interface Configuration {
3066
3087
  | "promise"
3067
3088
  | "module-import"
3068
3089
  | "script"
3069
- | "node-commonjs";
3090
+ | "node-commonjs"
3091
+ | "asset"
3092
+ | "css-import"
3093
+ | "css-url";
3070
3094
 
3071
3095
  /**
3072
3096
  * Ignore specific warnings.
@@ -3234,6 +3258,7 @@ declare class ConstDependency extends NullDependency {
3234
3258
  static Template: typeof ConstDependencyTemplate;
3235
3259
  static NO_EXPORTS_REFERENCED: string[][];
3236
3260
  static EXPORTS_OBJECT_REFERENCED: string[][];
3261
+ static isLowPriorityDependency(dependency: Dependency): boolean;
3237
3262
  static TRANSITIVE: typeof TRANSITIVE;
3238
3263
  }
3239
3264
  declare class ConstDependencyTemplate extends NullDependencyTemplate {
@@ -3585,6 +3610,11 @@ declare interface CssAutoGeneratorOptions {
3585
3610
  * Parser options for css/auto modules.
3586
3611
  */
3587
3612
  declare interface CssAutoParserOptions {
3613
+ /**
3614
+ * Configure how CSS content is exported as default.
3615
+ */
3616
+ exportType?: "link" | "text" | "css-style-sheet";
3617
+
3588
3618
  /**
3589
3619
  * Enable/disable `@import` at-rules handling.
3590
3620
  */
@@ -3620,8 +3650,19 @@ declare abstract class CssGenerator extends Generator {
3620
3650
  | "dashes-only"
3621
3651
  | ((name: string) => string);
3622
3652
  localIdentName?: string;
3623
- exportsOnly?: boolean;
3624
- esModule?: boolean;
3653
+ sourceDependency(
3654
+ module: NormalModule,
3655
+ dependency: Dependency,
3656
+ initFragments: InitFragment<GenerateContext>[],
3657
+ source: ReplaceSource,
3658
+ generateContext: GenerateContext & { cssData: CssData }
3659
+ ): void;
3660
+ sourceModule(
3661
+ module: NormalModule,
3662
+ initFragments: InitFragment<GenerateContext>[],
3663
+ source: ReplaceSource,
3664
+ generateContext: GenerateContext & { cssData: CssData }
3665
+ ): void;
3625
3666
  generateError(
3626
3667
  error: Error,
3627
3668
  module: NormalModule,
@@ -3653,6 +3694,11 @@ declare interface CssGlobalGeneratorOptions {
3653
3694
  */
3654
3695
  esModule?: boolean;
3655
3696
 
3697
+ /**
3698
+ * Configure how CSS content is exported as default.
3699
+ */
3700
+ exportType?: "link" | "text" | "css-style-sheet";
3701
+
3656
3702
  /**
3657
3703
  * Specifies the convention of exported names.
3658
3704
  */
@@ -3679,6 +3725,11 @@ declare interface CssGlobalGeneratorOptions {
3679
3725
  * Parser options for css/global modules.
3680
3726
  */
3681
3727
  declare interface CssGlobalParserOptions {
3728
+ /**
3729
+ * Configure how CSS content is exported as default.
3730
+ */
3731
+ exportType?: "link" | "text" | "css-style-sheet";
3732
+
3682
3733
  /**
3683
3734
  * Enable/disable `@import` at-rules handling.
3684
3735
  */
@@ -3747,6 +3798,11 @@ declare interface CssModuleGeneratorOptions {
3747
3798
  */
3748
3799
  esModule?: boolean;
3749
3800
 
3801
+ /**
3802
+ * Configure how CSS content is exported as default.
3803
+ */
3804
+ exportType?: "link" | "text" | "css-style-sheet";
3805
+
3750
3806
  /**
3751
3807
  * Specifies the convention of exported names.
3752
3808
  */
@@ -3773,6 +3829,11 @@ declare interface CssModuleGeneratorOptions {
3773
3829
  * Parser options for css/module modules.
3774
3830
  */
3775
3831
  declare interface CssModuleParserOptions {
3832
+ /**
3833
+ * Configure how CSS content is exported as default.
3834
+ */
3835
+ exportType?: "link" | "text" | "css-style-sheet";
3836
+
3776
3837
  /**
3777
3838
  * Enable/disable `@import` at-rules handling.
3778
3839
  */
@@ -3805,11 +3866,6 @@ declare class CssModulesPlugin {
3805
3866
  chunkGraph: ChunkGraph,
3806
3867
  compilation: Compilation
3807
3868
  ): Module[];
3808
- renderModule(
3809
- module: CssModule,
3810
- renderContext: ChunkRenderContextCssModulesPlugin,
3811
- hooks: CompilationHooksCssModulesPlugin
3812
- ): Source;
3813
3869
  renderChunk(
3814
3870
  __0: RenderContextCssModulesPlugin,
3815
3871
  hooks: CompilationHooksCssModulesPlugin
@@ -3817,6 +3873,11 @@ declare class CssModulesPlugin {
3817
3873
  static getCompilationHooks(
3818
3874
  compilation: Compilation
3819
3875
  ): CompilationHooksCssModulesPlugin;
3876
+ static renderModule(
3877
+ module: CssModule,
3878
+ renderContext: ChunkRenderContextCssModulesPlugin,
3879
+ hooks: CompilationHooksCssModulesPlugin
3880
+ ): null | Source;
3820
3881
  static getChunkFilenameTemplate(
3821
3882
  chunk: Chunk,
3822
3883
  outputOptions: OutputNormalizedWithDefaults
@@ -3828,6 +3889,7 @@ declare abstract class CssParser extends ParserClass {
3828
3889
  import: boolean;
3829
3890
  url: boolean;
3830
3891
  namedExports: boolean;
3892
+ exportType?: "link" | "text" | "css-style-sheet";
3831
3893
  comments?: CommentCssParser[];
3832
3894
  magicCommentContext: Context;
3833
3895
  getComments(range: [number, number]): CommentCssParser[];
@@ -3841,6 +3903,11 @@ declare abstract class CssParser extends ParserClass {
3841
3903
  * Parser options for css modules.
3842
3904
  */
3843
3905
  declare interface CssParserOptions {
3906
+ /**
3907
+ * Configure how CSS content is exported as default.
3908
+ */
3909
+ exportType?: "link" | "text" | "css-style-sheet";
3910
+
3844
3911
  /**
3845
3912
  * Enable/disable `@import` at-rules handling.
3846
3913
  */
@@ -3985,6 +4052,7 @@ declare class Dependency {
3985
4052
  get disconnect(): any;
3986
4053
  static NO_EXPORTS_REFERENCED: string[][];
3987
4054
  static EXPORTS_OBJECT_REFERENCED: string[][];
4055
+ static isLowPriorityDependency(dependency: Dependency): boolean;
3988
4056
  static TRANSITIVE: typeof TRANSITIVE;
3989
4057
  }
3990
4058
  declare interface DependencyConstructor {
@@ -4085,6 +4153,7 @@ declare abstract class DependencyTemplates {
4085
4153
  declare interface DestructuringAssignmentProperty {
4086
4154
  id: string;
4087
4155
  range: [number, number];
4156
+ loc: SourceLocation;
4088
4157
  pattern?: Set<DestructuringAssignmentProperty>;
4089
4158
  shorthand: string | boolean;
4090
4159
  }
@@ -4419,6 +4488,44 @@ declare interface DllReferencePluginOptionsManifest {
4419
4488
  | "jsonp"
4420
4489
  | "system";
4421
4490
  }
4491
+ declare class DotenvPlugin {
4492
+ constructor(options?: DotenvPluginOptions);
4493
+ options: {
4494
+ /**
4495
+ * The directory from which .env files are loaded. Can be an absolute path, false will disable the .env file loading.
4496
+ */
4497
+ dir?: string | false;
4498
+ /**
4499
+ * Only expose environment variables that start with these prefixes. Defaults to 'WEBPACK_'.
4500
+ */
4501
+ prefix?: string | string[];
4502
+ /**
4503
+ * Template patterns for .env file names. Use [mode] as placeholder for the webpack mode. Defaults to ['.env', '.env.local', '.env.[mode]', '.env.[mode].local'].
4504
+ */
4505
+ template?: string[];
4506
+ };
4507
+ apply(compiler: Compiler): void;
4508
+ }
4509
+
4510
+ /**
4511
+ * Options for Dotenv plugin.
4512
+ */
4513
+ declare interface DotenvPluginOptions {
4514
+ /**
4515
+ * The directory from which .env files are loaded. Can be an absolute path, false will disable the .env file loading.
4516
+ */
4517
+ dir?: string | false;
4518
+
4519
+ /**
4520
+ * Only expose environment variables that start with these prefixes. Defaults to 'WEBPACK_'.
4521
+ */
4522
+ prefix?: string | string[];
4523
+
4524
+ /**
4525
+ * Template patterns for .env file names. Use [mode] as placeholder for the webpack mode. Defaults to ['.env', '.env.local', '.env.[mode]', '.env.[mode].local'].
4526
+ */
4527
+ template?: string[];
4528
+ }
4422
4529
  declare class DynamicEntryPlugin {
4423
4530
  constructor(context: string, entry: () => Promise<EntryStaticNormalized>);
4424
4531
  context: string;
@@ -4518,18 +4625,18 @@ declare class EnableWasmLoadingPlugin {
4518
4625
  type EncodingOption =
4519
4626
  | undefined
4520
4627
  | null
4521
- | "base64"
4522
- | "base64url"
4523
- | "hex"
4524
- | "binary"
4628
+ | "ascii"
4525
4629
  | "utf8"
4526
4630
  | "utf-8"
4527
4631
  | "utf16le"
4528
4632
  | "utf-16le"
4529
- | "latin1"
4530
- | "ascii"
4531
4633
  | "ucs2"
4532
4634
  | "ucs-2"
4635
+ | "base64"
4636
+ | "base64url"
4637
+ | "latin1"
4638
+ | "binary"
4639
+ | "hex"
4533
4640
  | ObjectEncodingOptions;
4534
4641
  type Entry =
4535
4642
  | string
@@ -4817,6 +4924,11 @@ declare interface Environment {
4817
4924
  */
4818
4925
  globalThis?: boolean;
4819
4926
 
4927
+ /**
4928
+ * The environment supports `import.meta.dirname` and `import.meta.filename`.
4929
+ */
4930
+ importMetaDirnameAndFilename?: boolean;
4931
+
4820
4932
  /**
4821
4933
  * The environment supports EcmaScript Module syntax to import EcmaScript modules (import ... from '...').
4822
4934
  */
@@ -5419,7 +5531,7 @@ type ExternalItemValue = string | boolean | string[] | { [index: string]: any };
5419
5531
  declare class ExternalModule extends Module {
5420
5532
  constructor(
5421
5533
  request: ExternalModuleRequest,
5422
- type: string,
5534
+ type: ExternalsType,
5423
5535
  userRequest: string,
5424
5536
  dependencyMeta?:
5425
5537
  | ImportDependencyMeta
@@ -5427,7 +5539,7 @@ declare class ExternalModule extends Module {
5427
5539
  | AssetDependencyMeta
5428
5540
  );
5429
5541
  request: ExternalModuleRequest;
5430
- externalType: string;
5542
+ externalType: ExternalsType;
5431
5543
  userRequest: string;
5432
5544
  dependencyMeta?:
5433
5545
  | ImportDependencyMeta
@@ -5450,6 +5562,7 @@ declare interface ExternalModuleInfo {
5450
5562
  type: "external";
5451
5563
  module: Module;
5452
5564
  runtimeCondition?: string | boolean | SortableSet<string>;
5565
+ nonDeferAccess: boolean;
5453
5566
  index: number;
5454
5567
 
5455
5568
  /**
@@ -5522,8 +5635,8 @@ type Externals =
5522
5635
  | ((data: ExternalItemFunctionData) => Promise<ExternalItemValue>)
5523
5636
  | ExternalItem[];
5524
5637
  declare class ExternalsPlugin {
5525
- constructor(type: string, externals: Externals);
5526
- type: string;
5638
+ constructor(type: ExternalsType, externals: Externals);
5639
+ type: ExternalsType;
5527
5640
  externals: Externals;
5528
5641
 
5529
5642
  /**
@@ -5607,7 +5720,10 @@ type ExternalsType =
5607
5720
  | "promise"
5608
5721
  | "module-import"
5609
5722
  | "script"
5610
- | "node-commonjs";
5723
+ | "node-commonjs"
5724
+ | "asset"
5725
+ | "css-import"
5726
+ | "css-url";
5611
5727
  declare interface FSImplementation {
5612
5728
  open?: (...args: any[]) => any;
5613
5729
  close?: (...args: any[]) => any;
@@ -6191,12 +6307,11 @@ declare class HarmonyImportDependency extends ModuleDependency {
6191
6307
  constructor(
6192
6308
  request: string,
6193
6309
  sourceOrder: number,
6194
- attributes?: ImportAttributes,
6195
- defer?: boolean
6310
+ phase: ImportPhaseType,
6311
+ attributes?: ImportAttributes
6196
6312
  );
6197
- sourceOrder: number;
6313
+ phase: ImportPhaseType;
6198
6314
  attributes?: ImportAttributes;
6199
- defer?: boolean;
6200
6315
  getImportVar(moduleGraph: ModuleGraph): string;
6201
6316
  getModuleExports(__0: DependencyTemplateContext): string;
6202
6317
  getImportStatement(
@@ -6218,6 +6333,7 @@ declare class HarmonyImportDependency extends ModuleDependency {
6218
6333
  };
6219
6334
  static NO_EXPORTS_REFERENCED: string[][];
6220
6335
  static EXPORTS_OBJECT_REFERENCED: string[][];
6336
+ static isLowPriorityDependency(dependency: Dependency): boolean;
6221
6337
  static TRANSITIVE: typeof TRANSITIVE;
6222
6338
  }
6223
6339
  declare class HarmonyImportDependencyTemplate extends DependencyTemplate {
@@ -6234,7 +6350,7 @@ declare interface HarmonySettings {
6234
6350
  name: string;
6235
6351
  await: boolean;
6236
6352
  attributes?: ImportAttributes;
6237
- defer?: boolean;
6353
+ phase: ImportPhaseType;
6238
6354
  }
6239
6355
  declare class Hash {
6240
6356
  constructor();
@@ -6247,7 +6363,7 @@ declare class Hash {
6247
6363
  /**
6248
6364
  * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
6249
6365
  */
6250
- update(data: string, inputEncoding: HashDigest): Hash;
6366
+ update(data: string, inputEncoding: string): Hash;
6251
6367
 
6252
6368
  /**
6253
6369
  * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
@@ -6257,21 +6373,8 @@ declare class Hash {
6257
6373
  /**
6258
6374
  * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
6259
6375
  */
6260
- digest(encoding: HashDigest): string;
6376
+ digest(encoding: string): string;
6261
6377
  }
6262
- type HashDigest =
6263
- | "base64"
6264
- | "base64url"
6265
- | "hex"
6266
- | "binary"
6267
- | "utf8"
6268
- | "utf-8"
6269
- | "utf16le"
6270
- | "utf-16le"
6271
- | "latin1"
6272
- | "ascii"
6273
- | "ucs2"
6274
- | "ucs-2";
6275
6378
  type HashFunction = string | typeof Hash;
6276
6379
  declare interface HashLike {
6277
6380
  /**
@@ -6308,18 +6411,18 @@ declare interface HashedModuleIdsPluginOptions {
6308
6411
  * The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
6309
6412
  */
6310
6413
  hashDigest?:
6311
- | "base64"
6312
- | "base64url"
6313
- | "hex"
6314
- | "binary"
6414
+ | "ascii"
6315
6415
  | "utf8"
6316
6416
  | "utf-8"
6317
6417
  | "utf16le"
6318
6418
  | "utf-16le"
6319
- | "latin1"
6320
- | "ascii"
6321
6419
  | "ucs2"
6322
- | "ucs-2";
6420
+ | "ucs-2"
6421
+ | "base64"
6422
+ | "base64url"
6423
+ | "latin1"
6424
+ | "binary"
6425
+ | "hex";
6323
6426
 
6324
6427
  /**
6325
6428
  * The prefix length of the hash digest to use, defaults to 4.
@@ -6394,9 +6497,6 @@ declare class HttpUriPlugin {
6394
6497
  */
6395
6498
  apply(compiler: Compiler): void;
6396
6499
  }
6397
- type HttpsServerOptions = SecureContextOptions &
6398
- TlsOptions &
6399
- ServerOptions<typeof IncomingMessage>;
6400
6500
  type IBigIntStats = IStatsBase<bigint> & {
6401
6501
  atimeNs: bigint;
6402
6502
  mtimeNs: bigint;
@@ -6518,6 +6618,7 @@ declare interface ImportModuleOptions {
6518
6618
  */
6519
6619
  baseUri?: string;
6520
6620
  }
6621
+ type ImportPhaseType = 0 | 1 | 2;
6521
6622
  declare interface ImportSettings {
6522
6623
  references: string[][];
6523
6624
  expression: ImportExpressionJavascriptParser;
@@ -6661,18 +6762,18 @@ declare interface IntermediateFileSystemExtras {
6661
6762
  createWriteStream: (
6662
6763
  pathLike: PathLikeFs,
6663
6764
  result?:
6664
- | "base64"
6665
- | "base64url"
6666
- | "hex"
6667
- | "binary"
6765
+ | "ascii"
6668
6766
  | "utf8"
6669
6767
  | "utf-8"
6670
6768
  | "utf16le"
6671
6769
  | "utf-16le"
6672
- | "latin1"
6673
- | "ascii"
6674
6770
  | "ucs2"
6675
6771
  | "ucs-2"
6772
+ | "base64"
6773
+ | "base64url"
6774
+ | "latin1"
6775
+ | "binary"
6776
+ | "hex"
6676
6777
  | WriteStreamOptions
6677
6778
  ) => NodeJS.WritableStream;
6678
6779
  open: Open;
@@ -6715,13 +6816,9 @@ declare interface IteratorObject<T, TReturn = unknown, TNext = unknown>
6715
6816
  [Symbol.dispose](): void;
6716
6817
  }
6717
6818
  declare abstract class JavascriptGenerator extends Generator {
6718
- generateError(
6719
- error: Error,
6720
- module: NormalModule,
6721
- generateContext: GenerateContext
6722
- ): null | Source;
6723
- sourceModule(
6819
+ sourceDependency(
6724
6820
  module: Module,
6821
+ dependency: Dependency,
6725
6822
  initFragments: InitFragment<GenerateContext>[],
6726
6823
  source: ReplaceSource,
6727
6824
  generateContext: GenerateContext
@@ -6733,13 +6830,17 @@ declare abstract class JavascriptGenerator extends Generator {
6733
6830
  source: ReplaceSource,
6734
6831
  generateContext: GenerateContext
6735
6832
  ): void;
6736
- sourceDependency(
6833
+ sourceModule(
6737
6834
  module: Module,
6738
- dependency: Dependency,
6739
6835
  initFragments: InitFragment<GenerateContext>[],
6740
6836
  source: ReplaceSource,
6741
6837
  generateContext: GenerateContext
6742
6838
  ): void;
6839
+ generateError(
6840
+ error: Error,
6841
+ module: NormalModule,
6842
+ generateContext: GenerateContext
6843
+ ): null | Source;
6743
6844
  }
6744
6845
  declare class JavascriptModulesPlugin {
6745
6846
  constructor(options?: object);
@@ -6776,15 +6877,6 @@ declare class JavascriptModulesPlugin {
6776
6877
  renderContext: RenderBootstrapContext,
6777
6878
  hooks: CompilationHooksJavascriptModulesPlugin
6778
6879
  ): string;
6779
- getRenamedInlineModule(
6780
- allModules: Module[],
6781
- renderContext: MainRenderContext,
6782
- inlinedModules: Set<Module>,
6783
- chunkRenderContext: ChunkRenderContextJavascriptModulesPlugin,
6784
- hooks: CompilationHooksJavascriptModulesPlugin,
6785
- allStrict: undefined | boolean,
6786
- hasChunkModules: boolean
6787
- ): false | Map<Module, Source>;
6788
6880
  static getCompilationHooks(
6789
6881
  compilation: Compilation
6790
6882
  ): CompilationHooksJavascriptModulesPlugin;
@@ -6795,7 +6887,10 @@ declare class JavascriptModulesPlugin {
6795
6887
  static chunkHasJs: (chunk: Chunk, chunkGraph: ChunkGraph) => boolean;
6796
6888
  }
6797
6889
  declare class JavascriptParser extends ParserClass {
6798
- constructor(sourceType?: "module" | "auto" | "script");
6890
+ constructor(
6891
+ sourceType?: "module" | "auto" | "script",
6892
+ options?: { parse?: (code: string, options: ParseOptions) => ParseResult }
6893
+ );
6799
6894
  hooks: Readonly<{
6800
6895
  evaluateTypeof: HookMap<
6801
6896
  SyncBailHook<
@@ -7225,15 +7320,16 @@ declare class JavascriptParser extends ParserClass {
7225
7320
  [LogicalExpression],
7226
7321
  boolean | void
7227
7322
  >;
7228
- program: SyncBailHook<[Program, CommentImport[]], boolean | void>;
7323
+ program: SyncBailHook<[Program, CommentJavascriptParser[]], boolean | void>;
7229
7324
  terminate: SyncBailHook<[ReturnStatement | ThrowStatement], boolean | void>;
7230
- finish: SyncBailHook<[Program, CommentImport[]], boolean | void>;
7325
+ finish: SyncBailHook<[Program, CommentJavascriptParser[]], boolean | void>;
7231
7326
  unusedStatement: SyncBailHook<[Statement], boolean | void>;
7232
7327
  }>;
7233
7328
  sourceType: "module" | "auto" | "script";
7329
+ options: { parse?: (code: string, options: ParseOptions) => ParseResult };
7234
7330
  scope: ScopeInfo;
7235
7331
  state: ParserState;
7236
- comments?: CommentImport[];
7332
+ comments?: CommentJavascriptParser[];
7237
7333
  semicolons?: Set<number>;
7238
7334
  statementPath?: StatementPathItem[];
7239
7335
  prevStatement?:
@@ -8057,7 +8153,7 @@ declare class JavascriptParser extends ParserClass {
8057
8153
  | MaybeNamedClassDeclaration,
8058
8154
  commentsStartPos: number
8059
8155
  ): boolean;
8060
- getComments(range: [number, number]): CommentImport[];
8156
+ getComments(range: [number, number]): CommentJavascriptParser[];
8061
8157
  isAsiPosition(pos: number): boolean;
8062
8158
  setAsiPosition(pos: number): void;
8063
8159
  unsetAsiPosition(pos: number): void;
@@ -8093,7 +8189,7 @@ declare class JavascriptParser extends ParserClass {
8093
8189
  evaluatedVariable(tagInfo: TagInfo): VariableInfo;
8094
8190
  parseCommentOptions(range: [number, number]): {
8095
8191
  options: null | Record<string, any>;
8096
- errors: null | (Error & { comment: CommentImport })[];
8192
+ errors: null | (Error & { comment: CommentJavascriptParser })[];
8097
8193
  };
8098
8194
  extractMemberExpressionChain(
8099
8195
  expression:
@@ -8347,6 +8443,11 @@ declare interface JavascriptParserOptions {
8347
8443
  */
8348
8444
  overrideStrict?: "strict" | "non-strict";
8349
8445
 
8446
+ /**
8447
+ * Function to parser source code.
8448
+ */
8449
+ parse?: (code: string, options: ParseOptions) => ParseResult;
8450
+
8350
8451
  /**
8351
8452
  * 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.
8352
8453
  */
@@ -8467,6 +8568,11 @@ declare interface JsonModulesPluginParserOptions {
8467
8568
  */
8468
8569
  exportsDepth?: number;
8469
8570
 
8571
+ /**
8572
+ * Allow named exports for json of object type
8573
+ */
8574
+ namedExports?: boolean;
8575
+
8470
8576
  /**
8471
8577
  * Function that executes for a module source string and should return json-compatible data.
8472
8578
  */
@@ -8505,6 +8611,11 @@ declare interface JsonParserOptions {
8505
8611
  */
8506
8612
  exportsDepth?: number;
8507
8613
 
8614
+ /**
8615
+ * Allow named exports for json of object type.
8616
+ */
8617
+ namedExports?: boolean;
8618
+
8508
8619
  /**
8509
8620
  * Function to parser content and return JSON.
8510
8621
  */
@@ -8623,6 +8734,11 @@ declare interface KnownAssetInfo {
8623
8734
  */
8624
8735
  javascriptModule?: boolean;
8625
8736
 
8737
+ /**
8738
+ * true, when file is a manifest
8739
+ */
8740
+ manifest?: boolean;
8741
+
8626
8742
  /**
8627
8743
  * object of pointers to other assets, keyed by type of relation (only points from parent to child)
8628
8744
  */
@@ -8750,6 +8866,7 @@ declare interface KnownBuildInfo {
8750
8866
  }
8751
8867
  declare interface KnownBuildMeta {
8752
8868
  exportsType?: "namespace" | "dynamic" | "default" | "flagged";
8869
+ exportType?: "link" | "text" | "css-style-sheet";
8753
8870
  defaultObject?: false | "redirect" | "redirect-warn";
8754
8871
  strictHarmonyModule?: boolean;
8755
8872
  treatAsCommonJs?: boolean;
@@ -9217,8 +9334,8 @@ declare interface LazyCompilationDefaultBackendOptions {
9217
9334
  * Specifies how to create the server handling the EventSource requests.
9218
9335
  */
9219
9336
  server?:
9220
- | ServerOptions<typeof IncomingMessage>
9221
- | HttpsServerOptions
9337
+ | ServerOptionsImportHttps<typeof IncomingMessage>
9338
+ | ServerOptionsImportHttp<typeof IncomingMessage>
9222
9339
  | (() => ServerLazyCompilationBackend);
9223
9340
  }
9224
9341
 
@@ -9927,6 +10044,94 @@ declare interface MakeDirectoryOptions {
9927
10044
  recursive?: boolean;
9928
10045
  mode?: string | number;
9929
10046
  }
10047
+
10048
+ /**
10049
+ * Describes a manifest entrypoint.
10050
+ */
10051
+ declare interface ManifestEntrypoint {
10052
+ /**
10053
+ * Contains the names of entrypoints.
10054
+ */
10055
+ imports: string[];
10056
+
10057
+ /**
10058
+ * Contains the names of parent entrypoints.
10059
+ */
10060
+ parents?: string[];
10061
+ }
10062
+
10063
+ /**
10064
+ * Describes a manifest asset that links the emitted path to the producing asset.
10065
+ */
10066
+ declare interface ManifestItem {
10067
+ /**
10068
+ * The path absolute URL (this indicates that the path is absolute from the server's root directory) to file.
10069
+ */
10070
+ file: string;
10071
+
10072
+ /**
10073
+ * The source path relative to the context.
10074
+ */
10075
+ src?: string;
10076
+ }
10077
+
10078
+ /**
10079
+ * The manifest object.
10080
+ */
10081
+ declare interface ManifestObject {
10082
+ [index: string]: any;
10083
+
10084
+ /**
10085
+ * Contains the names of assets.
10086
+ */
10087
+ assets: Record<string, ManifestItem>;
10088
+
10089
+ /**
10090
+ * Contains the names of entrypoints.
10091
+ */
10092
+ entrypoints: Record<string, ManifestEntrypoint>;
10093
+ }
10094
+ declare class ManifestPlugin {
10095
+ constructor(options: ManifestPluginOptions);
10096
+ options: ManifestPluginOptions &
10097
+ Required<Omit<ManifestPluginOptions, "filter" | "generate">>;
10098
+
10099
+ /**
10100
+ * Apply the plugin
10101
+ */
10102
+ apply(compiler: Compiler): void;
10103
+ }
10104
+ declare interface ManifestPluginOptions {
10105
+ /**
10106
+ * Enables/disables generation of the entrypoints manifest section.
10107
+ */
10108
+ entrypoints?: boolean;
10109
+
10110
+ /**
10111
+ * Specifies the filename of the output file on disk. By default the plugin will emit `manifest.json` inside the 'output.path' directory.
10112
+ */
10113
+ filename?: string;
10114
+
10115
+ /**
10116
+ * Allows filtering the files which make up the manifest.
10117
+ */
10118
+ filter?: (item: ManifestItem) => boolean;
10119
+
10120
+ /**
10121
+ * A function that receives the manifest object, modifies it, and returns the modified manifest.
10122
+ */
10123
+ generate?: (manifest: ManifestObject) => ManifestObject;
10124
+
10125
+ /**
10126
+ * Specifies a path prefix for all keys in the manifest.
10127
+ */
10128
+ prefix?: string;
10129
+
10130
+ /**
10131
+ * A function that receives the manifest object and returns the manifest string.
10132
+ */
10133
+ serialize?: (manifest: ManifestObject) => string;
10134
+ }
9930
10135
  declare interface MapOptions {
9931
10136
  /**
9932
10137
  * need columns?
@@ -10261,13 +10466,15 @@ declare class ModuleConcatenationPlugin {
10261
10466
  apply(compiler: Compiler): void;
10262
10467
  }
10263
10468
  declare class ModuleDependency extends Dependency {
10264
- constructor(request: string);
10469
+ constructor(request: string, sourceOrder?: number);
10265
10470
  request: string;
10266
10471
  userRequest: string;
10472
+ sourceOrder?: number;
10267
10473
  range?: [number, number];
10268
10474
  static Template: typeof DependencyTemplate;
10269
10475
  static NO_EXPORTS_REFERENCED: string[][];
10270
10476
  static EXPORTS_OBJECT_REFERENCED: string[][];
10477
+ static isLowPriorityDependency(dependency: Dependency): boolean;
10271
10478
  static TRANSITIVE: typeof TRANSITIVE;
10272
10479
  }
10273
10480
  declare class ModuleExternalInitFragment extends InitFragment<GenerateContext> {
@@ -10303,6 +10510,22 @@ declare class ModuleFactory {
10303
10510
  callback: (err?: null | Error, result?: ModuleFactoryResult) => void
10304
10511
  ): void;
10305
10512
  }
10513
+ declare interface ModuleFactoryCacheEntry {
10514
+ /**
10515
+ * - The undo path to the CSS file
10516
+ */
10517
+ undoPath: string;
10518
+
10519
+ /**
10520
+ * - The inheritance chain
10521
+ */
10522
+ inheritance: [CssLayer, Supports, Media][];
10523
+
10524
+ /**
10525
+ * - The cached source
10526
+ */
10527
+ source: CachedSource;
10528
+ }
10306
10529
  declare interface ModuleFactoryCreateData {
10307
10530
  contextInfo: ModuleFactoryCreateDataContextInfo;
10308
10531
  resolveOptions?: ResolveOptions;
@@ -10389,7 +10612,10 @@ declare interface ModuleFederationPluginOptions {
10389
10612
  | "promise"
10390
10613
  | "module-import"
10391
10614
  | "script"
10392
- | "node-commonjs";
10615
+ | "node-commonjs"
10616
+ | "asset"
10617
+ | "css-import"
10618
+ | "css-url";
10393
10619
 
10394
10620
  /**
10395
10621
  * Container locations and request scopes from which modules should be resolved and loaded at runtime. When provided, property name is used as request scope, otherwise request scope is automatically inferred from container location.
@@ -10933,24 +11159,24 @@ declare interface ModuleSettings {
10933
11159
  type?: string;
10934
11160
 
10935
11161
  /**
10936
- * Enable/Disable extracting source map.
11162
+ * Options for parsing.
10937
11163
  */
10938
- extractSourceMap?: boolean;
11164
+ parser?: { [index: string]: any };
10939
11165
 
10940
11166
  /**
10941
- * Options for the resolver.
11167
+ * The options for the module generator.
10942
11168
  */
10943
- resolve?: ResolveOptions;
11169
+ generator?: { [index: string]: any };
10944
11170
 
10945
11171
  /**
10946
- * Options for parsing.
11172
+ * Enable/Disable extracting source map.
10947
11173
  */
10948
- parser?: { [index: string]: any };
11174
+ extractSourceMap?: boolean;
10949
11175
 
10950
11176
  /**
10951
- * The options for the module generator.
11177
+ * Options for the resolver.
10952
11178
  */
10953
- generator?: { [index: string]: any };
11179
+ resolve?: ResolveOptions;
10954
11180
 
10955
11181
  /**
10956
11182
  * Flags a module as with or without side effects.
@@ -11077,8 +11303,7 @@ declare interface MultiCompilerOptions {
11077
11303
  */
11078
11304
  parallelism?: number;
11079
11305
  }
11080
- type MultiConfiguration = ReadonlyArray<WebpackOptionsNormalized> &
11081
- MultiCompilerOptions;
11306
+ type MultiConfiguration = ReadonlyArray<Configuration> & MultiCompilerOptions;
11082
11307
  declare abstract class MultiStats {
11083
11308
  stats: Stats[];
11084
11309
  get hash(): string;
@@ -11208,7 +11433,8 @@ declare class NodeSourcePlugin {
11208
11433
  apply(compiler: Compiler): void;
11209
11434
  }
11210
11435
  declare class NodeTargetPlugin {
11211
- constructor();
11436
+ constructor(type?: ExternalsType);
11437
+ type: ExternalsType;
11212
11438
 
11213
11439
  /**
11214
11440
  * Apply the plugin
@@ -11244,7 +11470,7 @@ declare class NormalModule extends Module {
11244
11470
  resourceResolveData?: ResourceSchemeData & Partial<ResolveRequest>;
11245
11471
  matchResource?: string;
11246
11472
  loaders: LoaderItem[];
11247
- extractSourceMap?: boolean;
11473
+ extractSourceMap: boolean;
11248
11474
  error: null | WebpackError;
11249
11475
  getResource(): null | string;
11250
11476
 
@@ -11397,7 +11623,7 @@ declare interface NormalModuleCreateData {
11397
11623
  /**
11398
11624
  * enable/disable extracting source map
11399
11625
  */
11400
- extractSourceMap?: boolean;
11626
+ extractSourceMap: boolean;
11401
11627
  }
11402
11628
  declare abstract class NormalModuleFactory extends ModuleFactory {
11403
11629
  hooks: Readonly<{
@@ -11741,7 +11967,7 @@ declare interface NormalModuleLoaderContext<OptionsType> {
11741
11967
  mode: "none" | "development" | "production";
11742
11968
  webpack?: boolean;
11743
11969
  hashFunction: HashFunction;
11744
- hashDigest: HashDigest;
11970
+ hashDigest: string;
11745
11971
  hashDigestLength: number;
11746
11972
  hashSalt?: string;
11747
11973
  _module?: NormalModule;
@@ -11812,6 +12038,7 @@ declare class NullDependency extends Dependency {
11812
12038
  static Template: typeof NullDependencyTemplate;
11813
12039
  static NO_EXPORTS_REFERENCED: string[][];
11814
12040
  static EXPORTS_OBJECT_REFERENCED: string[][];
12041
+ static isLowPriorityDependency(dependency: Dependency): boolean;
11815
12042
  static TRANSITIVE: typeof TRANSITIVE;
11816
12043
  }
11817
12044
  declare class NullDependencyTemplate extends DependencyTemplate {
@@ -11827,18 +12054,18 @@ declare interface ObjectDeserializerContext {
11827
12054
  declare interface ObjectEncodingOptions {
11828
12055
  encoding?:
11829
12056
  | null
11830
- | "base64"
11831
- | "base64url"
11832
- | "hex"
11833
- | "binary"
12057
+ | "ascii"
11834
12058
  | "utf8"
11835
12059
  | "utf-8"
11836
12060
  | "utf16le"
11837
12061
  | "utf-16le"
11838
- | "latin1"
11839
- | "ascii"
11840
12062
  | "ucs2"
11841
- | "ucs-2";
12063
+ | "ucs-2"
12064
+ | "base64"
12065
+ | "base64url"
12066
+ | "latin1"
12067
+ | "binary"
12068
+ | "hex";
11842
12069
  }
11843
12070
  declare interface ObjectSerializer {
11844
12071
  serialize: (value: any, context: ObjectSerializerContext) => void;
@@ -12744,19 +12971,7 @@ declare interface Output {
12744
12971
  /**
12745
12972
  * Digest types used for the hash.
12746
12973
  */
12747
- hashDigest?:
12748
- | "base64"
12749
- | "base64url"
12750
- | "hex"
12751
- | "binary"
12752
- | "utf8"
12753
- | "utf-8"
12754
- | "utf16le"
12755
- | "utf-16le"
12756
- | "latin1"
12757
- | "ascii"
12758
- | "ucs2"
12759
- | "ucs-2";
12974
+ hashDigest?: string;
12760
12975
 
12761
12976
  /**
12762
12977
  * Number of chars which are used for the hash.
@@ -12923,18 +13138,18 @@ declare interface OutputFileSystem {
12923
13138
  createReadStream?: (
12924
13139
  path: PathLikeFs,
12925
13140
  options?:
12926
- | "base64"
12927
- | "base64url"
12928
- | "hex"
12929
- | "binary"
13141
+ | "ascii"
12930
13142
  | "utf8"
12931
13143
  | "utf-8"
12932
13144
  | "utf16le"
12933
13145
  | "utf-16le"
12934
- | "latin1"
12935
- | "ascii"
12936
13146
  | "ucs2"
12937
13147
  | "ucs-2"
13148
+ | "base64"
13149
+ | "base64url"
13150
+ | "latin1"
13151
+ | "binary"
13152
+ | "hex"
12938
13153
  | ReadStreamOptions
12939
13154
  ) => NodeJS.ReadableStream;
12940
13155
  join?: (path1: string, path2: string) => string;
@@ -13071,19 +13286,7 @@ declare interface OutputNormalized {
13071
13286
  /**
13072
13287
  * Digest types used for the hash.
13073
13288
  */
13074
- hashDigest?:
13075
- | "base64"
13076
- | "base64url"
13077
- | "hex"
13078
- | "binary"
13079
- | "utf8"
13080
- | "utf-8"
13081
- | "utf16le"
13082
- | "utf-16le"
13083
- | "latin1"
13084
- | "ascii"
13085
- | "ucs2"
13086
- | "ucs-2";
13289
+ hashDigest?: string;
13087
13290
 
13088
13291
  /**
13089
13292
  * Number of chars which are used for the hash.
@@ -13259,21 +13462,7 @@ type OutputNormalizedWithDefaults = OutputNormalized & {
13259
13462
  path: string;
13260
13463
  pathinfo: NonNullable<undefined | boolean | "verbose">;
13261
13464
  hashFunction: NonNullable<undefined | string | typeof Hash>;
13262
- hashDigest: NonNullable<
13263
- | undefined
13264
- | "base64"
13265
- | "base64url"
13266
- | "hex"
13267
- | "binary"
13268
- | "utf8"
13269
- | "utf-8"
13270
- | "utf16le"
13271
- | "utf-16le"
13272
- | "latin1"
13273
- | "ascii"
13274
- | "ucs2"
13275
- | "ucs-2"
13276
- >;
13465
+ hashDigest: string;
13277
13466
  hashDigestLength: number;
13278
13467
  chunkLoadTimeout: number;
13279
13468
  chunkLoading: NonNullable<undefined | string | false>;
@@ -13292,6 +13481,48 @@ type OutputNormalizedWithDefaults = OutputNormalized & {
13292
13481
  declare interface ParameterizedComparator<TArg extends object, T> {
13293
13482
  (tArg: TArg): Comparator<T>;
13294
13483
  }
13484
+ declare interface ParseOptions {
13485
+ sourceType: "module" | "script";
13486
+ ecmaVersion?:
13487
+ | 3
13488
+ | 5
13489
+ | 6
13490
+ | 7
13491
+ | 8
13492
+ | 9
13493
+ | 10
13494
+ | 11
13495
+ | 12
13496
+ | 13
13497
+ | 14
13498
+ | 15
13499
+ | 16
13500
+ | 17
13501
+ | 2015
13502
+ | 2016
13503
+ | 2017
13504
+ | 2018
13505
+ | 2019
13506
+ | 2020
13507
+ | 2021
13508
+ | 2022
13509
+ | 2023
13510
+ | 2024
13511
+ | 2025
13512
+ | 2026
13513
+ | "latest";
13514
+ locations?: boolean;
13515
+ comments?: boolean;
13516
+ ranges?: boolean;
13517
+ semicolons?: boolean;
13518
+ allowHashBang?: boolean;
13519
+ allowReturnOutsideFunction?: boolean;
13520
+ }
13521
+ declare interface ParseResult {
13522
+ ast: Program;
13523
+ comments: CommentJavascriptParser[];
13524
+ semicolons: Set<number>;
13525
+ }
13295
13526
  declare interface ParsedIdentifier {
13296
13527
  /**
13297
13528
  * request
@@ -13653,7 +13884,7 @@ declare class ProgressPlugin {
13653
13884
  showDependencies?: boolean;
13654
13885
  showActiveModules?: boolean;
13655
13886
  percentBy?: null | "modules" | "entries" | "dependencies";
13656
- apply(compiler: Compiler | MultiCompiler): void;
13887
+ apply(compiler: MultiCompiler | Compiler): void;
13657
13888
  static getReporter(
13658
13889
  compiler: Compiler
13659
13890
  ): undefined | ((p: number, ...args: string[]) => void);
@@ -13965,19 +14196,19 @@ declare interface ReadFileFs {
13965
14196
  (
13966
14197
  path: PathOrFileDescriptorFs,
13967
14198
  options:
13968
- | "base64"
13969
- | "base64url"
13970
- | "hex"
13971
- | "binary"
14199
+ | ({ encoding: BufferEncoding; flag?: string } & Abortable)
14200
+ | "ascii"
13972
14201
  | "utf8"
13973
14202
  | "utf-8"
13974
14203
  | "utf16le"
13975
14204
  | "utf-16le"
13976
- | "latin1"
13977
- | "ascii"
13978
14205
  | "ucs2"
13979
14206
  | "ucs-2"
13980
- | ({ encoding: BufferEncoding; flag?: string } & Abortable),
14207
+ | "base64"
14208
+ | "base64url"
14209
+ | "latin1"
14210
+ | "binary"
14211
+ | "hex",
13981
14212
  callback: (err: null | NodeJS.ErrnoException, result?: string) => void
13982
14213
  ): void;
13983
14214
  (
@@ -13985,18 +14216,18 @@ declare interface ReadFileFs {
13985
14216
  options:
13986
14217
  | undefined
13987
14218
  | null
13988
- | "base64"
13989
- | "base64url"
13990
- | "hex"
13991
- | "binary"
14219
+ | "ascii"
13992
14220
  | "utf8"
13993
14221
  | "utf-8"
13994
14222
  | "utf16le"
13995
14223
  | "utf-16le"
13996
- | "latin1"
13997
- | "ascii"
13998
14224
  | "ucs2"
13999
14225
  | "ucs-2"
14226
+ | "base64"
14227
+ | "base64url"
14228
+ | "latin1"
14229
+ | "binary"
14230
+ | "hex"
14000
14231
  | (ObjectEncodingOptions & { flag?: string } & Abortable),
14001
14232
  callback: (
14002
14233
  err: null | NodeJS.ErrnoException,
@@ -14016,36 +14247,36 @@ declare interface ReadFileSync {
14016
14247
  (
14017
14248
  path: PathOrFileDescriptorFs,
14018
14249
  options:
14019
- | "base64"
14020
- | "base64url"
14021
- | "hex"
14022
- | "binary"
14250
+ | "ascii"
14023
14251
  | "utf8"
14024
14252
  | "utf-8"
14025
14253
  | "utf16le"
14026
14254
  | "utf-16le"
14027
- | "latin1"
14028
- | "ascii"
14029
14255
  | "ucs2"
14030
14256
  | "ucs-2"
14257
+ | "base64"
14258
+ | "base64url"
14259
+ | "latin1"
14260
+ | "binary"
14261
+ | "hex"
14031
14262
  | { encoding: BufferEncoding; flag?: string }
14032
14263
  ): string;
14033
14264
  (
14034
14265
  path: PathOrFileDescriptorFs,
14035
14266
  options?:
14036
14267
  | null
14037
- | "base64"
14038
- | "base64url"
14039
- | "hex"
14040
- | "binary"
14268
+ | "ascii"
14041
14269
  | "utf8"
14042
14270
  | "utf-8"
14043
14271
  | "utf16le"
14044
14272
  | "utf-16le"
14045
- | "latin1"
14046
- | "ascii"
14047
14273
  | "ucs2"
14048
14274
  | "ucs-2"
14275
+ | "base64"
14276
+ | "base64url"
14277
+ | "latin1"
14278
+ | "binary"
14279
+ | "hex"
14049
14280
  | (ObjectEncodingOptions & { flag?: string })
14050
14281
  ): string | Buffer;
14051
14282
  }
@@ -14061,18 +14292,18 @@ declare interface ReadFileTypes {
14061
14292
  (
14062
14293
  path: PathOrFileDescriptorTypes,
14063
14294
  options:
14064
- | "base64"
14065
- | "base64url"
14066
- | "hex"
14067
- | "binary"
14295
+ | "ascii"
14068
14296
  | "utf8"
14069
14297
  | "utf-8"
14070
14298
  | "utf16le"
14071
14299
  | "utf-16le"
14072
- | "latin1"
14073
- | "ascii"
14074
14300
  | "ucs2"
14075
14301
  | "ucs-2"
14302
+ | "base64"
14303
+ | "base64url"
14304
+ | "latin1"
14305
+ | "binary"
14306
+ | "hex"
14076
14307
  | ({ encoding: BufferEncoding; flag?: string } & Abortable),
14077
14308
  callback: (err: null | NodeJS.ErrnoException, result?: string) => void
14078
14309
  ): void;
@@ -14081,18 +14312,18 @@ declare interface ReadFileTypes {
14081
14312
  options:
14082
14313
  | undefined
14083
14314
  | null
14084
- | "base64"
14085
- | "base64url"
14086
- | "hex"
14087
- | "binary"
14315
+ | "ascii"
14088
14316
  | "utf8"
14089
14317
  | "utf-8"
14090
14318
  | "utf16le"
14091
14319
  | "utf-16le"
14092
- | "latin1"
14093
- | "ascii"
14094
14320
  | "ucs2"
14095
14321
  | "ucs-2"
14322
+ | "base64"
14323
+ | "base64url"
14324
+ | "latin1"
14325
+ | "binary"
14326
+ | "hex"
14096
14327
  | (ObjectEncodingOptions & { flag?: string } & Abortable),
14097
14328
  callback: (
14098
14329
  err: null | NodeJS.ErrnoException,
@@ -14114,33 +14345,33 @@ declare interface ReaddirFs {
14114
14345
  options:
14115
14346
  | undefined
14116
14347
  | null
14117
- | "base64"
14118
- | "base64url"
14119
- | "hex"
14120
- | "binary"
14348
+ | "ascii"
14121
14349
  | "utf8"
14122
14350
  | "utf-8"
14123
14351
  | "utf16le"
14124
14352
  | "utf-16le"
14125
- | "latin1"
14126
- | "ascii"
14127
14353
  | "ucs2"
14128
14354
  | "ucs-2"
14355
+ | "base64"
14356
+ | "base64url"
14357
+ | "latin1"
14358
+ | "binary"
14359
+ | "hex"
14129
14360
  | {
14130
14361
  encoding:
14131
14362
  | null
14132
- | "base64"
14133
- | "base64url"
14134
- | "hex"
14135
- | "binary"
14363
+ | "ascii"
14136
14364
  | "utf8"
14137
14365
  | "utf-8"
14138
14366
  | "utf16le"
14139
14367
  | "utf-16le"
14140
- | "latin1"
14141
- | "ascii"
14142
14368
  | "ucs2"
14143
- | "ucs-2";
14369
+ | "ucs-2"
14370
+ | "base64"
14371
+ | "base64url"
14372
+ | "latin1"
14373
+ | "binary"
14374
+ | "hex";
14144
14375
  withFileTypes?: false;
14145
14376
  recursive?: boolean;
14146
14377
  },
@@ -14158,18 +14389,18 @@ declare interface ReaddirFs {
14158
14389
  options:
14159
14390
  | undefined
14160
14391
  | null
14161
- | "base64"
14162
- | "base64url"
14163
- | "hex"
14164
- | "binary"
14392
+ | "ascii"
14165
14393
  | "utf8"
14166
14394
  | "utf-8"
14167
14395
  | "utf16le"
14168
14396
  | "utf-16le"
14169
- | "latin1"
14170
- | "ascii"
14171
14397
  | "ucs2"
14172
14398
  | "ucs-2"
14399
+ | "base64"
14400
+ | "base64url"
14401
+ | "latin1"
14402
+ | "binary"
14403
+ | "hex"
14173
14404
  | (ObjectEncodingOptions & {
14174
14405
  withFileTypes?: false;
14175
14406
  recursive?: boolean;
@@ -14208,33 +14439,33 @@ declare interface ReaddirSync {
14208
14439
  path: PathLikeFs,
14209
14440
  options?:
14210
14441
  | null
14211
- | "base64"
14212
- | "base64url"
14213
- | "hex"
14214
- | "binary"
14442
+ | "ascii"
14215
14443
  | "utf8"
14216
14444
  | "utf-8"
14217
14445
  | "utf16le"
14218
14446
  | "utf-16le"
14219
- | "latin1"
14220
- | "ascii"
14221
14447
  | "ucs2"
14222
14448
  | "ucs-2"
14449
+ | "base64"
14450
+ | "base64url"
14451
+ | "latin1"
14452
+ | "binary"
14453
+ | "hex"
14223
14454
  | {
14224
14455
  encoding:
14225
14456
  | null
14226
- | "base64"
14227
- | "base64url"
14228
- | "hex"
14229
- | "binary"
14457
+ | "ascii"
14230
14458
  | "utf8"
14231
14459
  | "utf-8"
14232
14460
  | "utf16le"
14233
14461
  | "utf-16le"
14234
- | "latin1"
14235
- | "ascii"
14236
14462
  | "ucs2"
14237
- | "ucs-2";
14463
+ | "ucs-2"
14464
+ | "base64"
14465
+ | "base64url"
14466
+ | "latin1"
14467
+ | "binary"
14468
+ | "hex";
14238
14469
  withFileTypes?: false;
14239
14470
  recursive?: boolean;
14240
14471
  }
@@ -14249,18 +14480,18 @@ declare interface ReaddirSync {
14249
14480
  path: PathLikeFs,
14250
14481
  options?:
14251
14482
  | null
14252
- | "base64"
14253
- | "base64url"
14254
- | "hex"
14255
- | "binary"
14483
+ | "ascii"
14256
14484
  | "utf8"
14257
14485
  | "utf-8"
14258
14486
  | "utf16le"
14259
14487
  | "utf-16le"
14260
- | "latin1"
14261
- | "ascii"
14262
14488
  | "ucs2"
14263
14489
  | "ucs-2"
14490
+ | "base64"
14491
+ | "base64url"
14492
+ | "latin1"
14493
+ | "binary"
14494
+ | "hex"
14264
14495
  | (ObjectEncodingOptions & { withFileTypes?: false; recursive?: boolean })
14265
14496
  ): string[] | Buffer[];
14266
14497
  (
@@ -14281,33 +14512,33 @@ declare interface ReaddirTypes {
14281
14512
  options:
14282
14513
  | undefined
14283
14514
  | null
14284
- | "base64"
14285
- | "base64url"
14286
- | "hex"
14287
- | "binary"
14515
+ | "ascii"
14288
14516
  | "utf8"
14289
14517
  | "utf-8"
14290
14518
  | "utf16le"
14291
14519
  | "utf-16le"
14292
- | "latin1"
14293
- | "ascii"
14294
14520
  | "ucs2"
14295
14521
  | "ucs-2"
14522
+ | "base64"
14523
+ | "base64url"
14524
+ | "latin1"
14525
+ | "binary"
14526
+ | "hex"
14296
14527
  | {
14297
14528
  encoding:
14298
14529
  | null
14299
- | "base64"
14300
- | "base64url"
14301
- | "hex"
14302
- | "binary"
14530
+ | "ascii"
14303
14531
  | "utf8"
14304
14532
  | "utf-8"
14305
14533
  | "utf16le"
14306
14534
  | "utf-16le"
14307
- | "latin1"
14308
- | "ascii"
14309
14535
  | "ucs2"
14310
- | "ucs-2";
14536
+ | "ucs-2"
14537
+ | "base64"
14538
+ | "base64url"
14539
+ | "latin1"
14540
+ | "binary"
14541
+ | "hex";
14311
14542
  withFileTypes?: false;
14312
14543
  recursive?: boolean;
14313
14544
  },
@@ -14325,18 +14556,18 @@ declare interface ReaddirTypes {
14325
14556
  options:
14326
14557
  | undefined
14327
14558
  | null
14328
- | "base64"
14329
- | "base64url"
14330
- | "hex"
14331
- | "binary"
14559
+ | "ascii"
14332
14560
  | "utf8"
14333
14561
  | "utf-8"
14334
14562
  | "utf16le"
14335
14563
  | "utf-16le"
14336
- | "latin1"
14337
- | "ascii"
14338
14564
  | "ucs2"
14339
14565
  | "ucs-2"
14566
+ | "base64"
14567
+ | "base64url"
14568
+ | "latin1"
14569
+ | "binary"
14570
+ | "hex"
14340
14571
  | (ObjectEncodingOptions & {
14341
14572
  withFileTypes?: false;
14342
14573
  recursive?: boolean;
@@ -14443,7 +14674,7 @@ declare interface RealContentHashPluginOptions {
14443
14674
  /**
14444
14675
  * the hash digest to use
14445
14676
  */
14446
- hashDigest: HashDigest;
14677
+ hashDigest: string;
14447
14678
  }
14448
14679
  declare interface RealDependencyLocation {
14449
14680
  start: SourcePosition;
@@ -16207,6 +16438,10 @@ declare abstract class RuntimeTemplate {
16207
16438
  * if the dependency is weak (will create a nice error message)
16208
16439
  */
16209
16440
  weak?: boolean;
16441
+ /**
16442
+ * dependency
16443
+ */
16444
+ dependency: Dependency;
16210
16445
  /**
16211
16446
  * if set, will be filled with runtime requirements
16212
16447
  */
@@ -16268,9 +16503,9 @@ declare abstract class RuntimeTemplate {
16268
16503
  */
16269
16504
  runtimeRequirements: Set<string>;
16270
16505
  /**
16271
- * if set, the module will be deferred
16506
+ * module dependency
16272
16507
  */
16273
- defer?: boolean;
16508
+ dependency: ModuleDependency;
16274
16509
  }): [string, string];
16275
16510
  exportFromImport<GenerateContext>(__0: {
16276
16511
  /**
@@ -16330,9 +16565,9 @@ declare abstract class RuntimeTemplate {
16330
16565
  */
16331
16566
  runtimeRequirements: Set<string>;
16332
16567
  /**
16333
- * if true, the module will be deferred.
16568
+ * module dependency
16334
16569
  */
16335
- defer?: boolean;
16570
+ dependency: ModuleDependency;
16336
16571
  }): string;
16337
16572
  blockPromise(__0: {
16338
16573
  /**
@@ -16906,6 +17141,11 @@ declare interface SourceMapDevToolPluginOptions {
16906
17141
  */
16907
17142
  filename?: null | string | false;
16908
17143
 
17144
+ /**
17145
+ * Decide whether to ignore source files that match the specified value in the SourceMap.
17146
+ */
17147
+ ignoreList?: string | RegExp | Rule[] | ((str: string) => boolean);
17148
+
16909
17149
  /**
16910
17150
  * Include source maps for module paths that match the given value.
16911
17151
  */
@@ -17833,18 +18073,18 @@ declare interface StreamChunksOptions {
17833
18073
  declare interface StreamOptions {
17834
18074
  flags?: string;
17835
18075
  encoding?:
17836
- | "base64"
17837
- | "base64url"
17838
- | "hex"
17839
- | "binary"
18076
+ | "ascii"
17840
18077
  | "utf8"
17841
18078
  | "utf-8"
17842
18079
  | "utf16le"
17843
18080
  | "utf-16le"
17844
- | "latin1"
17845
- | "ascii"
17846
18081
  | "ucs2"
17847
- | "ucs-2";
18082
+ | "ucs-2"
18083
+ | "base64"
18084
+ | "base64url"
18085
+ | "latin1"
18086
+ | "binary"
18087
+ | "hex";
17848
18088
  fd?: any;
17849
18089
  mode?: number;
17850
18090
  autoClose?: boolean;
@@ -18386,6 +18626,11 @@ declare interface WebpackOptionsNormalized {
18386
18626
  */
18387
18627
  devtool?: string | false;
18388
18628
 
18629
+ /**
18630
+ * Enable and configure the Dotenv plugin to load environment variables from .env files.
18631
+ */
18632
+ dotenv?: boolean | DotenvPluginOptions;
18633
+
18389
18634
  /**
18390
18635
  * The entry point(s) of the compilation.
18391
18636
  */
@@ -18431,7 +18676,10 @@ declare interface WebpackOptionsNormalized {
18431
18676
  | "promise"
18432
18677
  | "module-import"
18433
18678
  | "script"
18434
- | "node-commonjs";
18679
+ | "node-commonjs"
18680
+ | "asset"
18681
+ | "css-import"
18682
+ | "css-url";
18435
18683
 
18436
18684
  /**
18437
18685
  * Ignore specific warnings.
@@ -18583,11 +18831,20 @@ type WebpackOptionsNormalizedWithDefaults = WebpackOptionsNormalized & {
18583
18831
  | "module-import"
18584
18832
  | "script"
18585
18833
  | "node-commonjs"
18834
+ | "asset"
18835
+ | "css-import"
18836
+ | "css-url"
18586
18837
  >;
18587
18838
  } & { watch: NonNullable<undefined | boolean> } & {
18588
18839
  performance: NonNullable<undefined | false | PerformanceOptions>;
18589
18840
  } & { recordsInputPath: NonNullable<undefined | string | false> } & {
18590
- recordsOutputPath: NonNullable<undefined | string | false>;
18841
+ recordsOutputPath:
18842
+ | (string & {
18843
+ dotenv: NonNullable<undefined | boolean | DotenvPluginOptions>;
18844
+ })
18845
+ | (false & {
18846
+ dotenv: NonNullable<undefined | boolean | DotenvPluginOptions>;
18847
+ });
18591
18848
  };
18592
18849
 
18593
18850
  /**
@@ -18633,18 +18890,18 @@ declare interface WriteFile {
18633
18890
  }
18634
18891
  type WriteFileOptions =
18635
18892
  | null
18636
- | "base64"
18637
- | "base64url"
18638
- | "hex"
18639
- | "binary"
18893
+ | "ascii"
18640
18894
  | "utf8"
18641
18895
  | "utf-8"
18642
18896
  | "utf16le"
18643
18897
  | "utf-16le"
18644
- | "latin1"
18645
- | "ascii"
18646
18898
  | "ucs2"
18647
18899
  | "ucs-2"
18900
+ | "base64"
18901
+ | "base64url"
18902
+ | "latin1"
18903
+ | "binary"
18904
+ | "hex"
18648
18905
  | (ObjectEncodingOptions &
18649
18906
  Abortable & { mode?: string | number; flag?: string; flush?: boolean });
18650
18907
  declare interface WriteOnlySet<T> {
@@ -18654,29 +18911,34 @@ type WriteStreamOptions = StreamOptions & {
18654
18911
  fs?: null | CreateWriteStreamFSImplementation;
18655
18912
  flush?: boolean;
18656
18913
  };
18914
+ declare interface _functionWebpack {
18915
+ (
18916
+ options: Configuration,
18917
+ callback: CallbackWebpackFunction_2<Stats, void>
18918
+ ): null | Compiler;
18919
+ (options: Configuration): Compiler;
18920
+ (
18921
+ options: MultiConfiguration,
18922
+ callback: CallbackWebpackFunction_2<MultiStats, void>
18923
+ ): null | MultiCompiler;
18924
+ (options: MultiConfiguration): MultiCompiler;
18925
+ }
18657
18926
  declare interface chunkModuleHashMap {
18658
18927
  [index: number]: string;
18659
18928
  [index: string]: string;
18660
18929
  }
18661
18930
  declare function exports(
18662
18931
  options: Configuration,
18663
- callback?: CallbackWebpackFunction_2<Stats, void>
18932
+ callback: CallbackWebpackFunction_2<Stats, void>
18664
18933
  ): null | Compiler;
18934
+ declare function exports(options: Configuration): Compiler;
18665
18935
  declare function exports(
18666
18936
  options: MultiConfiguration,
18667
- callback?: CallbackWebpackFunction_2<MultiStats, void>
18937
+ callback: CallbackWebpackFunction_2<MultiStats, void>
18668
18938
  ): null | MultiCompiler;
18939
+ declare function exports(options: MultiConfiguration): MultiCompiler;
18669
18940
  declare namespace exports {
18670
- export const webpack: {
18671
- (
18672
- options: Configuration,
18673
- callback?: CallbackWebpackFunction_2<Stats, void>
18674
- ): null | Compiler;
18675
- (
18676
- options: MultiConfiguration,
18677
- callback?: CallbackWebpackFunction_2<MultiStats, void>
18678
- ): null | MultiCompiler;
18679
- };
18941
+ export const webpack: _functionWebpack;
18680
18942
  export const validate: (
18681
18943
  configuration: Configuration | MultiConfiguration
18682
18944
  ) => void;
@@ -18798,7 +19060,10 @@ declare namespace exports {
18798
19060
  export let createFakeNamespaceObject: "__webpack_require__.t";
18799
19061
  export let createScript: "__webpack_require__.ts";
18800
19062
  export let createScriptUrl: "__webpack_require__.tu";
19063
+ export let cssMergeStyleSheets: "__webpack_require__.mcs";
18801
19064
  export let currentRemoteGetScope: "__webpack_require__.R";
19065
+ export let deferredModuleAsyncTransitiveDependencies: "__webpack_require__.zT";
19066
+ export let deferredModuleAsyncTransitiveDependenciesSymbol: "__webpack_require__.zS";
18802
19067
  export let definePropertyGetters: "__webpack_require__.d";
18803
19068
  export let ensureChunk: "__webpack_require__.e";
18804
19069
  export let ensureChunkHandlers: "__webpack_require__.f";
@@ -18832,8 +19097,8 @@ declare namespace exports {
18832
19097
  export let interceptModuleExecution: "__webpack_require__.i";
18833
19098
  export let loadScript: "__webpack_require__.l";
18834
19099
  export let makeDeferredNamespaceObject: "__webpack_require__.z";
18835
- export let makeDeferredNamespaceObjectSymbol: "__webpack_require__.zS";
18836
19100
  export let makeNamespaceObject: "__webpack_require__.r";
19101
+ export let makeOptimizedDeferredNamespaceObject: "__webpack_require__.zO";
18837
19102
  export let module: "module";
18838
19103
  export let moduleCache: "__webpack_require__.c";
18839
19104
  export let moduleFactories: "__webpack_require__.m";
@@ -19310,6 +19575,7 @@ declare namespace exports {
19310
19575
  DllPlugin,
19311
19576
  DllReferencePlugin,
19312
19577
  DynamicEntryPlugin,
19578
+ DotenvPlugin,
19313
19579
  EntryOptionPlugin,
19314
19580
  EntryPlugin,
19315
19581
  EnvironmentPlugin,
@@ -19344,6 +19610,7 @@ declare namespace exports {
19344
19610
  EntryPlugin as SingleEntryPlugin,
19345
19611
  SourceMapDevToolPlugin,
19346
19612
  Stats,
19613
+ ManifestPlugin,
19347
19614
  Template,
19348
19615
  WatchIgnorePlugin,
19349
19616
  WebpackError,