webpack 5.94.0 → 5.95.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.
@@ -2580,6 +2580,10 @@
2580
2580
  "type": "object",
2581
2581
  "additionalProperties": false,
2582
2582
  "properties": {
2583
+ "avoidEntryIife": {
2584
+ "description": "Avoid wrapping the entry module in an IIFE.",
2585
+ "type": "boolean"
2586
+ },
2583
2587
  "checkWasmTypes": {
2584
2588
  "description": "Check for incompatible wasm types when importing/exporting from/to ESM.",
2585
2589
  "type": "boolean"
package/types.d.ts CHANGED
@@ -4048,9 +4048,9 @@ declare interface Environment {
4048
4048
  templateLiteral?: boolean;
4049
4049
  }
4050
4050
  declare class EnvironmentPlugin {
4051
- constructor(...keys: (string | string[] | Record<string, string>)[]);
4051
+ constructor(...keys: (string | string[] | Record<string, any>)[]);
4052
4052
  keys: string[];
4053
- defaultValues: Record<string, string>;
4053
+ defaultValues: Record<string, any>;
4054
4054
 
4055
4055
  /**
4056
4056
  * Apply the plugin
@@ -4582,7 +4582,6 @@ declare class ExternalModule extends Module {
4582
4582
  externalType: string;
4583
4583
  userRequest: string;
4584
4584
  dependencyMeta?: ImportDependencyMeta | CssImportDependencyMeta;
4585
- getModuleImportType(externalType: string): string;
4586
4585
 
4587
4586
  /**
4588
4587
  * restore unsafe cache data
@@ -5205,6 +5204,7 @@ declare class Hash {
5205
5204
  */
5206
5205
  digest(encoding?: string): string | Buffer;
5207
5206
  }
5207
+ type HashFunction = string | typeof Hash;
5208
5208
  declare interface HashableObject {
5209
5209
  updateHash: (arg0: Hash) => void;
5210
5210
  }
@@ -5607,13 +5607,15 @@ declare class JavascriptModulesPlugin {
5607
5607
  renderContext: RenderBootstrapContext,
5608
5608
  hooks: CompilationHooksJavascriptModulesPlugin
5609
5609
  ): string;
5610
- renameInlineModule(
5610
+ getRenamedInlineModule(
5611
5611
  allModules: Module[],
5612
5612
  renderContext: MainRenderContext,
5613
5613
  inlinedModules: Set<Module>,
5614
5614
  chunkRenderContext: ChunkRenderContext,
5615
- hooks: CompilationHooksJavascriptModulesPlugin
5616
- ): Map<Module, Source>;
5615
+ hooks: CompilationHooksJavascriptModulesPlugin,
5616
+ allStrict: boolean,
5617
+ hasChunkModules: boolean
5618
+ ): false | Map<Module, Source>;
5617
5619
  findNewName(
5618
5620
  oldName: string,
5619
5621
  usedName: Set<string>,
@@ -9380,6 +9382,10 @@ declare interface NormalModuleLoaderContext<OptionsType> {
9380
9382
  sourceMap?: boolean;
9381
9383
  mode: "none" | "development" | "production";
9382
9384
  webpack?: boolean;
9385
+ hashFunction: HashFunction;
9386
+ hashDigest: string;
9387
+ hashDigestLength: number;
9388
+ hashSalt: string;
9383
9389
  _module?: NormalModule;
9384
9390
  _compilation?: Compilation;
9385
9391
  _compiler?: Compiler;
@@ -9544,6 +9550,11 @@ declare interface Open {
9544
9550
  * Enables/Disables integrated optimizations.
9545
9551
  */
9546
9552
  declare interface Optimization {
9553
+ /**
9554
+ * Avoid wrapping the entry module in an IIFE.
9555
+ */
9556
+ avoidEntryIife?: boolean;
9557
+
9547
9558
  /**
9548
9559
  * Check for incompatible wasm types when importing/exporting from/to ESM.
9549
9560
  */
@@ -13604,11 +13615,6 @@ declare abstract class SortableSet<T> extends Set<T> {
13604
13615
  */
13605
13616
  getFromUnorderedCache<R>(fn: (arg0: SortableSet<T>) => R): R;
13606
13617
  toJSON(): T[];
13607
-
13608
- /**
13609
- * Iterates over values in the set.
13610
- */
13611
- [Symbol.iterator](): IterableIterator<T>;
13612
13618
  }
13613
13619
  declare class Source {
13614
13620
  constructor();