webpack 5.65.0 → 5.69.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 (134) hide show
  1. package/README.md +1 -1
  2. package/lib/APIPlugin.js +33 -0
  3. package/lib/Cache.js +1 -1
  4. package/lib/CacheFacade.js +4 -11
  5. package/lib/Chunk.js +2 -0
  6. package/lib/ChunkGraph.js +1 -2
  7. package/lib/CleanPlugin.js +1 -1
  8. package/lib/Compilation.js +93 -47
  9. package/lib/Compiler.js +57 -3
  10. package/lib/ContextModule.js +100 -41
  11. package/lib/ContextModuleFactory.js +60 -21
  12. package/lib/DelegatedModule.js +1 -1
  13. package/lib/Dependency.js +10 -0
  14. package/lib/DependencyTemplate.js +9 -0
  15. package/lib/DependencyTemplates.js +1 -1
  16. package/lib/DllModule.js +1 -1
  17. package/lib/EvalDevToolModulePlugin.js +16 -1
  18. package/lib/EvalSourceMapDevToolPlugin.js +18 -1
  19. package/lib/ExportsInfo.js +4 -4
  20. package/lib/ExternalModule.js +93 -53
  21. package/lib/ExternalModuleFactoryPlugin.js +1 -1
  22. package/lib/FileSystemInfo.js +29 -25
  23. package/lib/Generator.js +2 -0
  24. package/lib/HookWebpackError.js +1 -1
  25. package/lib/Module.js +25 -4
  26. package/lib/ModuleFilenameHelpers.js +5 -1
  27. package/lib/MultiCompiler.js +1 -1
  28. package/lib/MultiWatching.js +1 -1
  29. package/lib/NormalModule.js +9 -5
  30. package/lib/NormalModuleFactory.js +25 -27
  31. package/lib/ProgressPlugin.js +1 -1
  32. package/lib/RawModule.js +1 -1
  33. package/lib/RuntimeGlobals.js +29 -1
  34. package/lib/RuntimeModule.js +1 -1
  35. package/lib/RuntimePlugin.js +50 -0
  36. package/lib/RuntimeTemplate.js +21 -0
  37. package/lib/Template.js +2 -1
  38. package/lib/TemplatedPathPlugin.js +48 -23
  39. package/lib/Watching.js +2 -2
  40. package/lib/WebpackOptionsApply.js +43 -2
  41. package/lib/asset/AssetGenerator.js +67 -26
  42. package/lib/asset/AssetModulesPlugin.js +3 -0
  43. package/lib/asset/RawDataUrlModule.js +148 -0
  44. package/lib/async-modules/AwaitDependenciesInitFragment.js +4 -4
  45. package/lib/buildChunkGraph.js +1 -1
  46. package/lib/cache/ResolverCachePlugin.js +81 -29
  47. package/lib/cli.js +44 -3
  48. package/lib/config/defaults.js +86 -7
  49. package/lib/config/normalization.js +5 -0
  50. package/lib/container/ContainerEntryModule.js +4 -2
  51. package/lib/container/FallbackModule.js +4 -4
  52. package/lib/container/RemoteModule.js +4 -2
  53. package/lib/css/CssExportsGenerator.js +139 -0
  54. package/lib/css/CssGenerator.js +109 -0
  55. package/lib/css/CssLoadingRuntimeModule.js +440 -0
  56. package/lib/css/CssModulesPlugin.js +462 -0
  57. package/lib/css/CssParser.js +618 -0
  58. package/lib/css/walkCssTokens.js +659 -0
  59. package/lib/debug/ProfilingPlugin.js +15 -14
  60. package/lib/dependencies/ContextElementDependency.js +8 -2
  61. package/lib/dependencies/CreateScriptUrlDependency.js +12 -0
  62. package/lib/dependencies/CssExportDependency.js +85 -0
  63. package/lib/dependencies/CssImportDependency.js +75 -0
  64. package/lib/dependencies/CssLocalIdentifierDependency.js +119 -0
  65. package/lib/dependencies/CssSelfLocalIdentifierDependency.js +101 -0
  66. package/lib/dependencies/CssUrlDependency.js +132 -0
  67. package/lib/dependencies/ExportsInfoDependency.js +6 -0
  68. package/lib/dependencies/HarmonyCompatibilityDependency.js +5 -5
  69. package/lib/dependencies/ImportMetaPlugin.js +22 -3
  70. package/lib/dependencies/LoaderPlugin.js +2 -2
  71. package/lib/dependencies/URLDependency.js +3 -8
  72. package/lib/esm/ModuleChunkLoadingRuntimeModule.js +1 -1
  73. package/lib/hmr/LazyCompilationPlugin.js +45 -21
  74. package/lib/hmr/lazyCompilationBackend.js +4 -2
  75. package/lib/ids/DeterministicModuleIdsPlugin.js +55 -35
  76. package/lib/ids/HashedModuleIdsPlugin.js +9 -12
  77. package/lib/ids/IdHelpers.js +24 -10
  78. package/lib/ids/NamedModuleIdsPlugin.js +6 -9
  79. package/lib/ids/NaturalModuleIdsPlugin.js +10 -13
  80. package/lib/ids/OccurrenceModuleIdsPlugin.js +13 -10
  81. package/lib/ids/SyncModuleIdsPlugin.js +140 -0
  82. package/lib/index.js +10 -0
  83. package/lib/javascript/JavascriptGenerator.js +1 -0
  84. package/lib/javascript/JavascriptModulesPlugin.js +27 -2
  85. package/lib/javascript/StartupHelpers.js +6 -5
  86. package/lib/library/AssignLibraryPlugin.js +34 -5
  87. package/lib/library/EnableLibraryPlugin.js +11 -0
  88. package/lib/node/NodeTargetPlugin.js +1 -0
  89. package/lib/node/ReadFileChunkLoadingRuntimeModule.js +1 -1
  90. package/lib/node/RequireChunkLoadingRuntimeModule.js +1 -1
  91. package/lib/optimize/ConcatenatedModule.js +21 -9
  92. package/lib/runtime/AsyncModuleRuntimeModule.js +25 -15
  93. package/lib/runtime/CreateScriptRuntimeModule.js +36 -0
  94. package/lib/runtime/CreateScriptUrlRuntimeModule.js +9 -34
  95. package/lib/runtime/GetTrustedTypesPolicyRuntimeModule.js +76 -0
  96. package/lib/schemes/HttpUriPlugin.js +32 -11
  97. package/lib/serialization/FileMiddleware.js +44 -9
  98. package/lib/sharing/ConsumeSharedModule.js +4 -2
  99. package/lib/sharing/ProvideSharedModule.js +4 -2
  100. package/lib/sharing/utils.js +1 -1
  101. package/lib/stats/DefaultStatsFactoryPlugin.js +112 -67
  102. package/lib/stats/DefaultStatsPrinterPlugin.js +88 -23
  103. package/lib/util/ArrayHelpers.js +18 -4
  104. package/lib/util/AsyncQueue.js +1 -1
  105. package/lib/util/compileBooleanMatcher.js +1 -1
  106. package/lib/util/deterministicGrouping.js +1 -1
  107. package/lib/util/hash/xxhash64.js +2 -2
  108. package/lib/util/identifier.js +65 -44
  109. package/lib/util/internalSerializables.js +11 -0
  110. package/lib/util/nonNumericOnlyHash.js +22 -0
  111. package/lib/util/semver.js +17 -10
  112. package/lib/wasm-async/AsyncWebAssemblyJavascriptGenerator.js +9 -3
  113. package/lib/web/JsonpChunkLoadingRuntimeModule.js +2 -2
  114. package/lib/webworker/ImportScriptsChunkLoadingPlugin.js +3 -11
  115. package/lib/webworker/ImportScriptsChunkLoadingRuntimeModule.js +1 -1
  116. package/package.json +16 -23
  117. package/schemas/WebpackOptions.check.js +1 -1
  118. package/schemas/WebpackOptions.json +96 -1
  119. package/schemas/plugins/asset/AssetGeneratorOptions.check.js +1 -1
  120. package/schemas/plugins/asset/AssetResourceGeneratorOptions.check.js +1 -1
  121. package/schemas/plugins/container/ContainerPlugin.check.js +1 -1
  122. package/schemas/plugins/container/ContainerPlugin.json +2 -1
  123. package/schemas/plugins/container/ContainerReferencePlugin.check.js +1 -1
  124. package/schemas/plugins/container/ContainerReferencePlugin.json +1 -0
  125. package/schemas/plugins/container/ExternalsType.check.js +1 -1
  126. package/schemas/plugins/container/ModuleFederationPlugin.check.js +1 -1
  127. package/schemas/plugins/container/ModuleFederationPlugin.json +3 -1
  128. package/schemas/plugins/css/CssGeneratorOptions.check.d.ts +7 -0
  129. package/schemas/plugins/css/CssGeneratorOptions.check.js +6 -0
  130. package/schemas/plugins/css/CssGeneratorOptions.json +3 -0
  131. package/schemas/plugins/css/CssParserOptions.check.d.ts +7 -0
  132. package/schemas/plugins/css/CssParserOptions.check.js +6 -0
  133. package/schemas/plugins/css/CssParserOptions.json +3 -0
  134. package/types.d.ts +295 -59
package/types.d.ts CHANGED
@@ -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
  */
@@ -656,7 +664,7 @@ declare interface CacheGroupsContext {
656
664
  moduleGraph: ModuleGraph;
657
665
  chunkGraph: ChunkGraph;
658
666
  }
659
- type CacheOptionsNormalized = false | MemoryCacheOptions | FileCacheOptions;
667
+ type CacheOptionsNormalized = false | FileCacheOptions | MemoryCacheOptions;
660
668
  declare class CachedSource extends Source {
661
669
  constructor(source: Source);
662
670
  constructor(source: Source | (() => Source), cachedData?: any);
@@ -675,16 +683,16 @@ declare interface CallExpressionInfo {
675
683
  getMembers: () => string[];
676
684
  }
677
685
  declare interface CallbackAsyncQueue<T> {
678
- (err?: WebpackError, result?: T): any;
686
+ (err?: null | WebpackError, result?: T): any;
679
687
  }
680
688
  declare interface CallbackCache<T> {
681
- (err?: WebpackError, result?: T): void;
689
+ (err?: null | WebpackError, result?: T): void;
682
690
  }
683
691
  declare interface CallbackFunction<T> {
684
- (err?: Error, result?: T): any;
692
+ (err?: null | Error, result?: T): any;
685
693
  }
686
694
  declare interface CallbackNormalErrorCache<T> {
687
- (err?: Error, result?: T): void;
695
+ (err?: null | Error, result?: T): void;
688
696
  }
689
697
  declare interface CallbackWebpack<T> {
690
698
  (err?: Error, stats?: T): void;
@@ -702,6 +710,10 @@ declare class Chunk {
702
710
  | null
703
711
  | string
704
712
  | ((arg0: PathData, arg1?: AssetInfo) => string);
713
+ cssFilenameTemplate:
714
+ | null
715
+ | string
716
+ | ((arg0: PathData, arg1?: AssetInfo) => string);
705
717
  runtime: RuntimeSpec;
706
718
  files: Set<string>;
707
719
  auxiliaryFiles: Set<string>;
@@ -1037,6 +1049,11 @@ declare abstract class ChunkGroup {
1037
1049
  }
1038
1050
  type ChunkGroupOptions = RawChunkGroupOptions & { name?: string };
1039
1051
  declare interface ChunkHashContext {
1052
+ /**
1053
+ * results of code generation
1054
+ */
1055
+ codeGenerationResults: CodeGenerationResults;
1056
+
1040
1057
  /**
1041
1058
  * the runtime template
1042
1059
  */
@@ -1217,6 +1234,11 @@ declare interface CodeGenerationContext {
1217
1234
  * when in concatenated module, information about other concatenated modules
1218
1235
  */
1219
1236
  concatenationScope?: ConcatenationScope;
1237
+
1238
+ /**
1239
+ * code generation results of other modules (need to have a codeGenerationDependency to use that)
1240
+ */
1241
+ codeGenerationResults: CodeGenerationResults;
1220
1242
  }
1221
1243
  declare interface CodeGenerationResult {
1222
1244
  /**
@@ -1532,7 +1554,7 @@ declare class Compilation {
1532
1554
  getLogger(name: string | (() => string)): WebpackLogger;
1533
1555
  addModule(
1534
1556
  module: Module,
1535
- callback: (err?: WebpackError, result?: Module) => void
1557
+ callback: (err?: null | WebpackError, result?: Module) => void
1536
1558
  ): void;
1537
1559
 
1538
1560
  /**
@@ -1550,21 +1572,21 @@ declare class Compilation {
1550
1572
  */
1551
1573
  buildModule(
1552
1574
  module: Module,
1553
- callback: (err?: WebpackError, result?: Module) => void
1575
+ callback: (err?: null | WebpackError, result?: Module) => void
1554
1576
  ): void;
1555
1577
  processModuleDependencies(
1556
1578
  module: Module,
1557
- callback: (err?: WebpackError, result?: Module) => void
1579
+ callback: (err?: null | WebpackError, result?: Module) => void
1558
1580
  ): void;
1559
1581
  processModuleDependenciesNonRecursive(module: Module): void;
1560
1582
  handleModuleCreation(
1561
1583
  __0: HandleModuleCreationOptions,
1562
- callback: (err?: WebpackError, result?: Module) => void
1584
+ callback: (err?: null | WebpackError, result?: Module) => void
1563
1585
  ): void;
1564
1586
  addModuleChain(
1565
1587
  context: string,
1566
1588
  dependency: Dependency,
1567
- callback: (err?: WebpackError, result?: Module) => void
1589
+ callback: (err?: null | WebpackError, result?: Module) => void
1568
1590
  ): void;
1569
1591
  addModuleTree(
1570
1592
  __0: {
@@ -1581,27 +1603,27 @@ declare class Compilation {
1581
1603
  */
1582
1604
  contextInfo?: Partial<ModuleFactoryCreateDataContextInfo>;
1583
1605
  },
1584
- callback: (err?: WebpackError, result?: Module) => void
1606
+ callback: (err?: null | WebpackError, result?: Module) => void
1585
1607
  ): void;
1586
1608
  addEntry(
1587
1609
  context: string,
1588
1610
  entry: Dependency,
1589
1611
  optionsOrName: string | EntryOptions,
1590
- callback: (err?: WebpackError, result?: Module) => void
1612
+ callback: (err?: null | WebpackError, result?: Module) => void
1591
1613
  ): void;
1592
1614
  addInclude(
1593
1615
  context: string,
1594
1616
  dependency: Dependency,
1595
1617
  options: EntryOptions,
1596
- callback: (err?: WebpackError, result?: Module) => void
1618
+ callback: (err?: null | WebpackError, result?: Module) => void
1597
1619
  ): void;
1598
1620
  rebuildModule(
1599
1621
  module: Module,
1600
- callback: (err?: WebpackError, result?: Module) => void
1622
+ callback: (err?: null | WebpackError, result?: Module) => void
1601
1623
  ): void;
1602
1624
  finish(callback?: any): void;
1603
1625
  unseal(): void;
1604
- seal(callback: (err?: WebpackError) => void): void;
1626
+ seal(callback: (err?: null | WebpackError) => void): void;
1605
1627
  reportDependencyErrorsAndWarnings(
1606
1628
  module: Module,
1607
1629
  blocks: DependenciesBlock[]
@@ -1634,11 +1656,15 @@ declare class Compilation {
1634
1656
  module: RuntimeModule,
1635
1657
  chunkGraph?: ChunkGraph
1636
1658
  ): void;
1659
+
1660
+ /**
1661
+ * If `module` is passed, `loc` and `request` must also be passed.
1662
+ */
1637
1663
  addChunkInGroup(
1638
1664
  groupOptions: string | ChunkGroupOptions,
1639
- module: Module,
1640
- loc: DependencyLocation,
1641
- request: string
1665
+ module?: Module,
1666
+ loc?: SyntheticDependencyLocation | RealDependencyLocation,
1667
+ request?: string
1642
1668
  ): ChunkGroup;
1643
1669
  addAsyncEntrypoint(
1644
1670
  options: EntryOptions,
@@ -1689,7 +1715,7 @@ declare class Compilation {
1689
1715
  clearAssets(): void;
1690
1716
  createModuleAssets(): void;
1691
1717
  getRenderManifest(options: RenderManifestOptions): RenderManifestEntry[];
1692
- createChunkAssets(callback: (err?: WebpackError) => void): void;
1718
+ createChunkAssets(callback: (err?: null | WebpackError) => void): void;
1693
1719
  getPath(
1694
1720
  filename: string | ((arg0: PathData, arg1?: AssetInfo) => string),
1695
1721
  data?: PathData
@@ -1725,17 +1751,20 @@ declare class Compilation {
1725
1751
  executeModule(
1726
1752
  module: Module,
1727
1753
  options: ExecuteModuleOptions,
1728
- callback: (err?: WebpackError, result?: ExecuteModuleResult) => void
1754
+ callback: (err?: null | WebpackError, result?: ExecuteModuleResult) => void
1729
1755
  ): void;
1730
1756
  checkConstraints(): void;
1731
1757
  factorizeModule: {
1732
1758
  (
1733
1759
  options: FactorizeModuleOptions & { factoryResult?: false },
1734
- callback: (err?: WebpackError, result?: Module) => void
1760
+ callback: (err?: null | WebpackError, result?: Module) => void
1735
1761
  ): void;
1736
1762
  (
1737
1763
  options: FactorizeModuleOptions & { factoryResult: true },
1738
- callback: (err?: WebpackError, result?: ModuleFactoryResult) => void
1764
+ callback: (
1765
+ err?: null | WebpackError,
1766
+ result?: ModuleFactoryResult
1767
+ ) => void
1739
1768
  ): void;
1740
1769
  };
1741
1770
 
@@ -1878,6 +1907,8 @@ declare class Compiler {
1878
1907
  make: AsyncParallelHook<[Compilation]>;
1879
1908
  finishMake: AsyncParallelHook<[Compilation]>;
1880
1909
  afterCompile: AsyncSeriesHook<[Compilation]>;
1910
+ readRecords: AsyncSeriesHook<[]>;
1911
+ emitRecords: AsyncSeriesHook<[]>;
1881
1912
  watchRun: AsyncSeriesHook<[Compiler]>;
1882
1913
  failed: SyncHook<[Error]>;
1883
1914
  invalid: SyncHook<[null | string, number]>;
@@ -1933,7 +1964,11 @@ declare class Compiler {
1933
1964
  watch(watchOptions: WatchOptions, handler: CallbackFunction<Stats>): Watching;
1934
1965
  run(callback: CallbackFunction<Stats>): void;
1935
1966
  runAsChild(
1936
- callback: (err?: Error, entries?: Chunk[], compilation?: Compilation) => any
1967
+ callback: (
1968
+ err?: null | Error,
1969
+ entries?: Chunk[],
1970
+ compilation?: Compilation
1971
+ ) => any
1937
1972
  ): void;
1938
1973
  purgeInputFileSystem(): void;
1939
1974
  emitAssets(compilation: Compilation, callback: CallbackFunction<void>): void;
@@ -2028,7 +2063,7 @@ declare interface Configuration {
2028
2063
  /**
2029
2064
  * Cache generated modules and chunks to improve performance for multiple incremental builds.
2030
2065
  */
2031
- cache?: boolean | MemoryCacheOptions | FileCacheOptions;
2066
+ cache?: boolean | FileCacheOptions | MemoryCacheOptions;
2032
2067
 
2033
2068
  /**
2034
2069
  * 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 +2120,7 @@ declare interface Configuration {
2085
2120
  * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
2086
2121
  */
2087
2122
  externalsType?:
2123
+ | "import"
2088
2124
  | "var"
2089
2125
  | "module"
2090
2126
  | "assign"
@@ -2095,6 +2131,7 @@ declare interface Configuration {
2095
2131
  | "commonjs"
2096
2132
  | "commonjs2"
2097
2133
  | "commonjs-module"
2134
+ | "commonjs-static"
2098
2135
  | "amd"
2099
2136
  | "amd-require"
2100
2137
  | "umd"
@@ -2102,7 +2139,6 @@ declare interface Configuration {
2102
2139
  | "jsonp"
2103
2140
  | "system"
2104
2141
  | "promise"
2105
- | "import"
2106
2142
  | "script"
2107
2143
  | "node-commonjs";
2108
2144
 
@@ -2441,9 +2477,9 @@ declare interface ContextHash {
2441
2477
  symlinks?: Set<string>;
2442
2478
  }
2443
2479
  type ContextMode =
2480
+ | "weak"
2444
2481
  | "sync"
2445
2482
  | "eager"
2446
- | "weak"
2447
2483
  | "async-weak"
2448
2484
  | "lazy"
2449
2485
  | "lazy-once";
@@ -2466,7 +2502,10 @@ declare abstract class ContextModuleFactory extends ModuleFactory {
2466
2502
  resolveDependencies(
2467
2503
  fs: InputFileSystem,
2468
2504
  options: ContextModuleOptions,
2469
- callback: (err?: Error, dependencies?: ContextElementDependency[]) => any
2505
+ callback: (
2506
+ err?: null | Error,
2507
+ dependencies?: ContextElementDependency[]
2508
+ ) => any
2470
2509
  ): void;
2471
2510
  }
2472
2511
 
@@ -2487,7 +2526,7 @@ declare interface ContextModuleOptions {
2487
2526
  * exports referenced from modules (won't be mangled)
2488
2527
  */
2489
2528
  referencedExports?: string[][];
2490
- resource: string;
2529
+ resource: string | string[];
2491
2530
  resourceQuery?: string;
2492
2531
  resourceFragment?: string;
2493
2532
  resolveOptions: any;
@@ -2516,6 +2555,16 @@ declare interface ContextTimestampAndHash {
2516
2555
  }
2517
2556
  type CreateStatsOptionsContext = KnownCreateStatsOptionsContext &
2518
2557
  Record<string, any>;
2558
+
2559
+ /**
2560
+ * Options for css handling.
2561
+ */
2562
+ declare interface CssExperimentOptions {
2563
+ /**
2564
+ * Avoid generating and loading a stylesheet and only embed exports from css into output javascript files.
2565
+ */
2566
+ exportsOnly?: boolean;
2567
+ }
2519
2568
  type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration;
2520
2569
  declare class DefinePlugin {
2521
2570
  /**
@@ -2582,6 +2631,12 @@ declare class Dependency {
2582
2631
  readonly type: string;
2583
2632
  readonly category: string;
2584
2633
  loc: DependencyLocation;
2634
+ setLoc(
2635
+ startLine?: any,
2636
+ startColumn?: any,
2637
+ endLine?: any,
2638
+ endColumn?: any
2639
+ ): void;
2585
2640
  getResourceIdentifier(): null | string;
2586
2641
  couldAffectReferencingModule(): boolean | typeof TRANSITIVE;
2587
2642
 
@@ -2697,6 +2752,11 @@ declare interface DependencyTemplateContext {
2697
2752
  * when in a concatenated module, information about other concatenated modules
2698
2753
  */
2699
2754
  concatenationScope?: ConcatenationScope;
2755
+
2756
+ /**
2757
+ * the code generation results
2758
+ */
2759
+ codeGenerationResults: CodeGenerationResults;
2700
2760
  }
2701
2761
  declare abstract class DependencyTemplates {
2702
2762
  get(dependency: DependencyConstructor): DependencyTemplate;
@@ -2718,8 +2778,58 @@ declare class DeterministicChunkIdsPlugin {
2718
2778
  apply(compiler: Compiler): void;
2719
2779
  }
2720
2780
  declare class DeterministicModuleIdsPlugin {
2721
- constructor(options?: any);
2722
- options: any;
2781
+ constructor(options?: {
2782
+ /**
2783
+ * context relative to which module identifiers are computed
2784
+ */
2785
+ context?: string;
2786
+ /**
2787
+ * selector function for modules
2788
+ */
2789
+ test?: (arg0: Module) => boolean;
2790
+ /**
2791
+ * maximum id length in digits (used as starting point)
2792
+ */
2793
+ maxLength?: number;
2794
+ /**
2795
+ * hash salt for ids
2796
+ */
2797
+ salt?: number;
2798
+ /**
2799
+ * do not increase the maxLength to find an optimal id space size
2800
+ */
2801
+ fixedLength?: boolean;
2802
+ /**
2803
+ * throw an error when id conflicts occur (instead of rehashing)
2804
+ */
2805
+ failOnConflict?: boolean;
2806
+ });
2807
+ 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
+ };
2723
2833
 
2724
2834
  /**
2725
2835
  * Apply the plugin
@@ -3373,6 +3483,11 @@ declare interface ExperimentsExtra {
3373
3483
  */
3374
3484
  buildHttp?: HttpUriOptions | (string | RegExp | ((uri: string) => boolean))[];
3375
3485
 
3486
+ /**
3487
+ * Enable css support.
3488
+ */
3489
+ css?: boolean | CssExperimentOptions;
3490
+
3376
3491
  /**
3377
3492
  * Compile entrypoints and import()s only when they are accessed.
3378
3493
  */
@@ -3389,6 +3504,11 @@ declare interface ExperimentsNormalizedExtra {
3389
3504
  */
3390
3505
  buildHttp?: HttpUriOptions;
3391
3506
 
3507
+ /**
3508
+ * Enable css support.
3509
+ */
3510
+ css?: CssExperimentOptions;
3511
+
3392
3512
  /**
3393
3513
  * Compile entrypoints and import()s only when they are accessed.
3394
3514
  */
@@ -3843,6 +3963,7 @@ declare interface ExternalsPresets {
3843
3963
  webAsync?: boolean;
3844
3964
  }
3845
3965
  type ExternalsType =
3966
+ | "import"
3846
3967
  | "var"
3847
3968
  | "module"
3848
3969
  | "assign"
@@ -3853,6 +3974,7 @@ type ExternalsType =
3853
3974
  | "commonjs"
3854
3975
  | "commonjs2"
3855
3976
  | "commonjs-module"
3977
+ | "commonjs-static"
3856
3978
  | "amd"
3857
3979
  | "amd-require"
3858
3980
  | "umd"
@@ -3860,7 +3982,6 @@ type ExternalsType =
3860
3982
  | "jsonp"
3861
3983
  | "system"
3862
3984
  | "promise"
3863
- | "import"
3864
3985
  | "script"
3865
3986
  | "node-commonjs";
3866
3987
  declare interface FactorizeModuleOptions {
@@ -4092,40 +4213,43 @@ declare abstract class FileSystemInfo {
4092
4213
  getFileTimestamp(
4093
4214
  path: string,
4094
4215
  callback: (
4095
- arg0?: WebpackError,
4216
+ arg0?: null | WebpackError,
4096
4217
  arg1?: null | FileSystemInfoEntry | "ignore"
4097
4218
  ) => void
4098
4219
  ): void;
4099
4220
  getContextTimestamp(
4100
4221
  path: string,
4101
4222
  callback: (
4102
- arg0?: WebpackError,
4223
+ arg0?: null | WebpackError,
4103
4224
  arg1?: null | "ignore" | ResolvedContextFileSystemInfoEntry
4104
4225
  ) => void
4105
4226
  ): void;
4106
4227
  getFileHash(
4107
4228
  path: string,
4108
- callback: (arg0?: WebpackError, arg1?: string) => void
4229
+ callback: (arg0?: null | WebpackError, arg1?: string) => void
4109
4230
  ): void;
4110
4231
  getContextHash(
4111
4232
  path: string,
4112
- callback: (arg0?: WebpackError, arg1?: string) => void
4233
+ callback: (arg0?: null | WebpackError, arg1?: string) => void
4113
4234
  ): void;
4114
4235
  getContextTsh(
4115
4236
  path: string,
4116
4237
  callback: (
4117
- arg0?: WebpackError,
4238
+ arg0?: null | WebpackError,
4118
4239
  arg1?: ResolvedContextTimestampAndHash
4119
4240
  ) => void
4120
4241
  ): void;
4121
4242
  resolveBuildDependencies(
4122
4243
  context: string,
4123
4244
  deps: Iterable<string>,
4124
- callback: (arg0?: Error, arg1?: ResolveBuildDependenciesResult) => void
4245
+ callback: (
4246
+ arg0?: null | Error,
4247
+ arg1?: ResolveBuildDependenciesResult
4248
+ ) => void
4125
4249
  ): void;
4126
4250
  checkResolveResultsValid(
4127
4251
  resolveResults: Map<string, string | false>,
4128
- callback: (arg0?: Error, arg1?: boolean) => void
4252
+ callback: (arg0?: null | Error, arg1?: boolean) => void
4129
4253
  ): void;
4130
4254
  createSnapshot(
4131
4255
  startTime: number,
@@ -4142,12 +4266,12 @@ declare abstract class FileSystemInfo {
4142
4266
  */
4143
4267
  timestamp?: boolean;
4144
4268
  },
4145
- callback: (arg0?: WebpackError, arg1?: Snapshot) => void
4269
+ callback: (arg0?: null | WebpackError, arg1?: null | Snapshot) => void
4146
4270
  ): void;
4147
4271
  mergeSnapshots(snapshot1: Snapshot, snapshot2: Snapshot): Snapshot;
4148
4272
  checkSnapshotValid(
4149
4273
  snapshot: Snapshot,
4150
- callback: (arg0?: WebpackError, arg1?: boolean) => void
4274
+ callback: (arg0?: null | WebpackError, arg1?: boolean) => void
4151
4275
  ): void;
4152
4276
  getDeprecatedFileTimestamps(): Map<any, any>;
4153
4277
  getDeprecatedContextTimestamps(): Map<any, any>;
@@ -4197,6 +4321,11 @@ declare interface GenerateContext {
4197
4321
  */
4198
4322
  concatenationScope?: ConcatenationScope;
4199
4323
 
4324
+ /**
4325
+ * code generation results of other modules (need to have a codeGenerationDependency to use that)
4326
+ */
4327
+ codeGenerationResults?: CodeGenerationResults;
4328
+
4200
4329
  /**
4201
4330
  * which kind of code should be generated
4202
4331
  */
@@ -4340,12 +4469,12 @@ declare class Hash {
4340
4469
  constructor();
4341
4470
 
4342
4471
  /**
4343
- * Update hash {@link https://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
4472
+ * Update hash {@link https ://nodejs.org/api/crypto.html#crypto_hash_update_data_inputencoding}
4344
4473
  */
4345
4474
  update(data: string | Buffer, inputEncoding?: string): Hash;
4346
4475
 
4347
4476
  /**
4348
- * Calculates the digest {@link https://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
4477
+ * Calculates the digest {@link https ://nodejs.org/api/crypto.html#crypto_hash_digest_encoding}
4349
4478
  */
4350
4479
  digest(encoding?: string): string | Buffer;
4351
4480
  }
@@ -4366,7 +4495,7 @@ declare interface HashedModuleIdsPluginOptions {
4366
4495
  /**
4367
4496
  * The encoding to use when generating the hash, defaults to 'base64'. All encodings from Node.JS' hash.digest are supported.
4368
4497
  */
4369
- hashDigest?: "base64" | "latin1" | "hex";
4498
+ hashDigest?: "latin1" | "hex" | "base64";
4370
4499
 
4371
4500
  /**
4372
4501
  * The prefix length of the hash digest to use, defaults to 4.
@@ -4780,6 +4909,7 @@ declare class JavascriptParser extends Parser {
4780
4909
  | ClassDeclaration
4781
4910
  | ExpressionStatement
4782
4911
  | BlockStatement
4912
+ | StaticBlock
4783
4913
  | EmptyStatement
4784
4914
  | DebuggerStatement
4785
4915
  | WithStatement
@@ -4810,6 +4940,7 @@ declare class JavascriptParser extends Parser {
4810
4940
  | ClassDeclaration
4811
4941
  | ExpressionStatement
4812
4942
  | BlockStatement
4943
+ | StaticBlock
4813
4944
  | EmptyStatement
4814
4945
  | DebuggerStatement
4815
4946
  | WithStatement
@@ -4840,6 +4971,7 @@ declare class JavascriptParser extends Parser {
4840
4971
  | ClassDeclaration
4841
4972
  | ExpressionStatement
4842
4973
  | BlockStatement
4974
+ | StaticBlock
4843
4975
  | EmptyStatement
4844
4976
  | DebuggerStatement
4845
4977
  | WithStatement
@@ -5011,6 +5143,7 @@ declare class JavascriptParser extends Parser {
5011
5143
  | ClassDeclaration
5012
5144
  | ExpressionStatement
5013
5145
  | BlockStatement
5146
+ | StaticBlock
5014
5147
  | EmptyStatement
5015
5148
  | DebuggerStatement
5016
5149
  | WithStatement
@@ -5233,7 +5366,7 @@ declare class JavascriptParser extends Parser {
5233
5366
  setVariable(name: string, variableInfo: ExportedVariableInfo): void;
5234
5367
  parseCommentOptions(
5235
5368
  range?: any
5236
- ): { options: null; errors: null } | { options: object; errors: any[] };
5369
+ ): { options: null; errors: null } | { options: object; errors: unknown[] };
5237
5370
  extractMemberExpressionChain(expression: MemberExpression): {
5238
5371
  members: string[];
5239
5372
  object:
@@ -5350,6 +5483,11 @@ declare interface JavascriptParserOptions {
5350
5483
  */
5351
5484
  importExportsPresence?: false | "auto" | "error" | "warn";
5352
5485
 
5486
+ /**
5487
+ * Enable/disable evaluating import.meta.
5488
+ */
5489
+ importMeta?: boolean;
5490
+
5353
5491
  /**
5354
5492
  * Include polyfills or mocks for various node stuff.
5355
5493
  */
@@ -5907,9 +6045,8 @@ declare class LazySet<T> {
5907
6045
  has(item: T): boolean;
5908
6046
  keys(): IterableIterator<T>;
5909
6047
  values(): IterableIterator<T>;
5910
- [Symbol.iterator](): IterableIterator<T>;
5911
- readonly [Symbol.toStringTag]: string;
5912
6048
  serialize(__0: { write: any }): void;
6049
+ [Symbol.iterator](): IterableIterator<T>;
5913
6050
  static deserialize(__0: { read: any }): LazySet<any>;
5914
6051
  }
5915
6052
  declare interface LibIdentOptions {
@@ -6005,7 +6142,7 @@ declare interface LibraryOptions {
6005
6142
  name?: string | string[] | LibraryCustomUmdObject;
6006
6143
 
6007
6144
  /**
6008
- * 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).
6145
+ * 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).
6009
6146
  */
6010
6147
  type: string;
6011
6148
 
@@ -6187,7 +6324,7 @@ declare interface LoaderPluginLoaderContext {
6187
6324
  importModule(
6188
6325
  request: string,
6189
6326
  options: ImportModuleOptions,
6190
- callback: (err?: Error, exports?: any) => any
6327
+ callback: (err?: null | Error, exports?: any) => any
6191
6328
  ): void;
6192
6329
  importModule(request: string, options?: ImportModuleOptions): Promise<any>;
6193
6330
  }
@@ -6492,6 +6629,7 @@ declare class Module extends DependenciesBlock {
6492
6629
  buildMeta: BuildMeta;
6493
6630
  buildInfo: Record<string, any>;
6494
6631
  presentationalDependencies?: Dependency[];
6632
+ codeGenerationDependencies?: Dependency[];
6495
6633
  id: string | number;
6496
6634
  readonly hash: string;
6497
6635
  readonly renderedHash: string;
@@ -6521,6 +6659,7 @@ declare class Module extends DependenciesBlock {
6521
6659
  strict: boolean
6522
6660
  ): "namespace" | "default-only" | "default-with-named" | "dynamic";
6523
6661
  addPresentationalDependency(presentationalDependency: Dependency): void;
6662
+ addCodeGenerationDependency(codeGenerationDependency: Dependency): void;
6524
6663
  addWarning(warning: WebpackError): void;
6525
6664
  getWarnings(): undefined | Iterable<WebpackError>;
6526
6665
  getNumberOfWarnings(): number;
@@ -6551,7 +6690,7 @@ declare class Module extends DependenciesBlock {
6551
6690
  hasReasons(moduleGraph: ModuleGraph, runtime: RuntimeSpec): boolean;
6552
6691
  needBuild(
6553
6692
  context: NeedBuildContext,
6554
- callback: (arg0?: WebpackError, arg1?: boolean) => void
6693
+ callback: (arg0?: null | WebpackError, arg1?: boolean) => void
6555
6694
  ): void;
6556
6695
  needRebuild(
6557
6696
  fileTimestamps: Map<string, null | number>,
@@ -6698,6 +6837,7 @@ declare interface ModuleFederationPluginOptions {
6698
6837
  * The external type of the remote containers.
6699
6838
  */
6700
6839
  remoteType?:
6840
+ | "import"
6701
6841
  | "var"
6702
6842
  | "module"
6703
6843
  | "assign"
@@ -6708,6 +6848,7 @@ declare interface ModuleFederationPluginOptions {
6708
6848
  | "commonjs"
6709
6849
  | "commonjs2"
6710
6850
  | "commonjs-module"
6851
+ | "commonjs-static"
6711
6852
  | "amd"
6712
6853
  | "amd-require"
6713
6854
  | "umd"
@@ -6715,7 +6856,6 @@ declare interface ModuleFederationPluginOptions {
6715
6856
  | "jsonp"
6716
6857
  | "system"
6717
6858
  | "promise"
6718
- | "import"
6719
6859
  | "script"
6720
6860
  | "node-commonjs";
6721
6861
 
@@ -7260,6 +7400,7 @@ type NodeEstreeIndex =
7260
7400
  | PrivateIdentifier
7261
7401
  | ExpressionStatement
7262
7402
  | BlockStatement
7403
+ | StaticBlock
7263
7404
  | EmptyStatement
7264
7405
  | DebuggerStatement
7265
7406
  | WithStatement
@@ -7420,7 +7561,7 @@ declare class NormalModule extends Module {
7420
7561
  resourceResolveData?: Record<string, any>;
7421
7562
  matchResource?: string;
7422
7563
  loaders: LoaderItem[];
7423
- error?: WebpackError;
7564
+ error?: null | WebpackError;
7424
7565
  restoreFromUnsafeCache(
7425
7566
  unsafeCacheData?: any,
7426
7567
  normalModuleFactory?: any
@@ -7579,8 +7720,8 @@ type NormalizedStatsOptions = KnownNormalizedStatsOptions &
7579
7720
  Omit<
7580
7721
  StatsOptions,
7581
7722
  | "context"
7582
- | "requestShortener"
7583
7723
  | "chunkGroups"
7724
+ | "requestShortener"
7584
7725
  | "chunksSort"
7585
7726
  | "modulesSort"
7586
7727
  | "chunkModulesSort"
@@ -8139,6 +8280,20 @@ declare interface Output {
8139
8280
  */
8140
8281
  crossOriginLoading?: false | "anonymous" | "use-credentials";
8141
8282
 
8283
+ /**
8284
+ * 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.
8285
+ */
8286
+ cssChunkFilename?:
8287
+ | string
8288
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8289
+
8290
+ /**
8291
+ * 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.
8292
+ */
8293
+ cssFilename?:
8294
+ | string
8295
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8296
+
8142
8297
  /**
8143
8298
  * Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
8144
8299
  */
@@ -8245,7 +8400,7 @@ declare interface Output {
8245
8400
  libraryExport?: string | string[];
8246
8401
 
8247
8402
  /**
8248
- * 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).
8403
+ * 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).
8249
8404
  */
8250
8405
  libraryTarget?: string;
8251
8406
 
@@ -8434,6 +8589,20 @@ declare interface OutputNormalized {
8434
8589
  */
8435
8590
  crossOriginLoading?: false | "anonymous" | "use-credentials";
8436
8591
 
8592
+ /**
8593
+ * 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.
8594
+ */
8595
+ cssChunkFilename?:
8596
+ | string
8597
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8598
+
8599
+ /**
8600
+ * 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.
8601
+ */
8602
+ cssFilename?:
8603
+ | string
8604
+ | ((pathData: PathData, assetInfo?: AssetInfo) => string);
8605
+
8437
8606
  /**
8438
8607
  * Similar to `output.devtoolModuleFilenameTemplate`, but used in the case of duplicate module identifiers.
8439
8608
  */
@@ -8829,7 +8998,7 @@ declare class ProgressPlugin {
8829
8998
  showModules?: boolean;
8830
8999
  showDependencies?: boolean;
8831
9000
  showActiveModules?: boolean;
8832
- percentBy?: null | "dependencies" | "modules" | "entries";
9001
+ percentBy?: null | "modules" | "dependencies" | "entries";
8833
9002
  apply(compiler: Compiler | MultiCompiler): void;
8834
9003
  static getReporter(
8835
9004
  compiler: Compiler
@@ -8890,7 +9059,7 @@ declare interface ProgressPluginOptions {
8890
9059
  /**
8891
9060
  * Collect percent algorithm. By default it calculates by a median from modules, entries and dependencies percent.
8892
9061
  */
8893
- percentBy?: null | "dependencies" | "modules" | "entries";
9062
+ percentBy?: null | "modules" | "dependencies" | "entries";
8894
9063
 
8895
9064
  /**
8896
9065
  * Collect profile data for progress steps. Default: false.
@@ -9057,6 +9226,11 @@ declare interface RenderBootstrapContext {
9057
9226
  */
9058
9227
  chunk: Chunk;
9059
9228
 
9229
+ /**
9230
+ * results of code generation
9231
+ */
9232
+ codeGenerationResults: CodeGenerationResults;
9233
+
9060
9234
  /**
9061
9235
  * the runtime template
9062
9236
  */
@@ -9231,6 +9405,11 @@ declare interface ResolveContext {
9231
9405
  * log function
9232
9406
  */
9233
9407
  log?: (arg0: string) => void;
9408
+
9409
+ /**
9410
+ * yield result, if provided plugins can return several results
9411
+ */
9412
+ yield?: (arg0: ResolveRequest) => void;
9234
9413
  }
9235
9414
  declare interface ResolveData {
9236
9415
  contextInfo: ModuleFactoryCreateDataContextInfo;
@@ -10015,8 +10194,8 @@ declare class RuntimeSpecSet {
10015
10194
  constructor(iterable?: any);
10016
10195
  add(runtime?: any): void;
10017
10196
  has(runtime?: any): boolean;
10018
- [Symbol.iterator](): IterableIterator<RuntimeSpec>;
10019
10197
  readonly size: number;
10198
+ [Symbol.iterator](): IterableIterator<RuntimeSpec>;
10020
10199
  }
10021
10200
  declare abstract class RuntimeTemplate {
10022
10201
  compilation: Compilation;
@@ -10413,6 +10592,24 @@ declare abstract class RuntimeTemplate {
10413
10592
  */
10414
10593
  runtimeRequirements: Set<string>;
10415
10594
  }): string;
10595
+ assetUrl(__0: {
10596
+ /**
10597
+ * the module
10598
+ */
10599
+ module: Module;
10600
+ /**
10601
+ * the public path
10602
+ */
10603
+ publicPath: string;
10604
+ /**
10605
+ * runtime
10606
+ */
10607
+ runtime?: RuntimeSpec;
10608
+ /**
10609
+ * the code generation results
10610
+ */
10611
+ codeGenerationResults: CodeGenerationResults;
10612
+ }): string;
10416
10613
  }
10417
10614
  declare abstract class RuntimeValue {
10418
10615
  fn: (arg0: {
@@ -10695,7 +10892,6 @@ declare abstract class SortableSet<T> extends Set<T> {
10695
10892
  * Iterates over values in the set.
10696
10893
  */
10697
10894
  [Symbol.iterator](): IterableIterator<T>;
10698
- readonly [Symbol.toStringTag]: string;
10699
10895
  }
10700
10896
  declare class Source {
10701
10897
  constructor();
@@ -10885,6 +11081,7 @@ type Statement =
10885
11081
  | ClassDeclaration
10886
11082
  | ExpressionStatement
10887
11083
  | BlockStatement
11084
+ | StaticBlock
10888
11085
  | EmptyStatement
10889
11086
  | DebuggerStatement
10890
11087
  | WithStatement
@@ -11430,6 +11627,31 @@ type StatsValue =
11430
11627
  | "minimal"
11431
11628
  | "normal"
11432
11629
  | "detailed";
11630
+ declare class SyncModuleIdsPlugin {
11631
+ constructor(__0: {
11632
+ /**
11633
+ * path to file
11634
+ */
11635
+ path: string;
11636
+ /**
11637
+ * context for module names
11638
+ */
11639
+ context?: string;
11640
+ /**
11641
+ * selector for modules
11642
+ */
11643
+ test: (arg0: Module) => boolean;
11644
+ /**
11645
+ * operation mode (defaults to merge)
11646
+ */
11647
+ mode?: "read" | "create" | "merge" | "update";
11648
+ });
11649
+
11650
+ /**
11651
+ * Apply the plugin
11652
+ */
11653
+ apply(compiler: Compiler): void;
11654
+ }
11433
11655
  declare interface SyntheticDependencyLocation {
11434
11656
  name: string;
11435
11657
  index?: number;
@@ -11634,7 +11856,7 @@ declare interface UserResolveOptions {
11634
11856
  restrictions?: (string | RegExp)[];
11635
11857
 
11636
11858
  /**
11637
- * Use only the sync constiants of the file system calls
11859
+ * Use only the sync constraints of the file system calls
11638
11860
  */
11639
11861
  useSyncFileSystemCalls?: boolean;
11640
11862
 
@@ -11997,6 +12219,7 @@ declare interface WebpackOptionsNormalized {
11997
12219
  * Specifies the default type of externals ('amd*', 'umd*', 'system' and 'jsonp' depend on output.libraryTarget set to the same value).
11998
12220
  */
11999
12221
  externalsType?:
12222
+ | "import"
12000
12223
  | "var"
12001
12224
  | "module"
12002
12225
  | "assign"
@@ -12007,6 +12230,7 @@ declare interface WebpackOptionsNormalized {
12007
12230
  | "commonjs"
12008
12231
  | "commonjs2"
12009
12232
  | "commonjs-module"
12233
+ | "commonjs-static"
12010
12234
  | "amd"
12011
12235
  | "amd-require"
12012
12236
  | "umd"
@@ -12014,7 +12238,6 @@ declare interface WebpackOptionsNormalized {
12014
12238
  | "jsonp"
12015
12239
  | "system"
12016
12240
  | "promise"
12017
- | "import"
12018
12241
  | "script"
12019
12242
  | "node-commonjs";
12020
12243
 
@@ -12298,11 +12521,16 @@ declare namespace exports {
12298
12521
  export let uncaughtErrorHandler: string;
12299
12522
  export let scriptNonce: string;
12300
12523
  export let loadScript: string;
12524
+ export let createScript: string;
12301
12525
  export let createScriptUrl: string;
12526
+ export let getTrustedTypesPolicy: string;
12302
12527
  export let chunkName: string;
12303
12528
  export let runtimeId: string;
12304
12529
  export let getChunkScriptFilename: string;
12530
+ export let getChunkCssFilename: string;
12531
+ export let hasCssModules: string;
12305
12532
  export let getChunkUpdateScriptFilename: string;
12533
+ export let getChunkUpdateCssFilename: string;
12306
12534
  export let startup: string;
12307
12535
  export let startupNoDefault: string;
12308
12536
  export let startupOnlyAfter: string;
@@ -12638,6 +12866,9 @@ declare namespace exports {
12638
12866
  export namespace schemes {
12639
12867
  export { HttpUriPlugin };
12640
12868
  }
12869
+ export namespace ids {
12870
+ export { SyncModuleIdsPlugin };
12871
+ }
12641
12872
  }
12642
12873
  export type WebpackPluginFunction = (
12643
12874
  this: Compiler,
@@ -12703,6 +12934,7 @@ declare namespace exports {
12703
12934
  Entry,
12704
12935
  EntryNormalized,
12705
12936
  EntryObject,
12937
+ FileCacheOptions,
12706
12938
  LibraryOptions,
12707
12939
  ModuleOptions,
12708
12940
  ResolveOptionsWebpackOptions as ResolveOptions,
@@ -12717,11 +12949,15 @@ declare namespace exports {
12717
12949
  WebpackPluginInstance,
12718
12950
  Asset,
12719
12951
  AssetInfo,
12952
+ EntryOptions,
12953
+ AssetEmittedInfo,
12720
12954
  MultiStats,
12721
12955
  ParserState,
12722
12956
  ResolvePluginInstance,
12723
12957
  Resolver,
12724
12958
  Watching,
12959
+ Argument,
12960
+ Problem,
12725
12961
  StatsAsset,
12726
12962
  StatsChunk,
12727
12963
  StatsChunkGroup,