webpack 5.73.0 → 5.74.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.

@@ -3737,6 +3737,29 @@
3737
3737
  "type": "string"
3738
3738
  }
3739
3739
  },
3740
+ "extensionAlias": {
3741
+ "description": "An object which maps extension to extension aliases.",
3742
+ "type": "object",
3743
+ "additionalProperties": {
3744
+ "description": "Extension alias.",
3745
+ "anyOf": [
3746
+ {
3747
+ "description": "Multiple extensions.",
3748
+ "type": "array",
3749
+ "items": {
3750
+ "description": "Aliased extension.",
3751
+ "type": "string",
3752
+ "minLength": 1
3753
+ }
3754
+ },
3755
+ {
3756
+ "description": "Aliased extension.",
3757
+ "type": "string",
3758
+ "minLength": 1
3759
+ }
3760
+ ]
3761
+ }
3762
+ },
3740
3763
  "extensions": {
3741
3764
  "description": "Extensions added to the request when trying to find the file.",
3742
3765
  "type": "array",
package/types.d.ts CHANGED
@@ -3847,6 +3847,13 @@ declare interface ExpressionExpressionInfo {
3847
3847
  getMembers: () => string[];
3848
3848
  getMembersOptionals: () => boolean[];
3849
3849
  }
3850
+ declare interface ExtensionAliasOption {
3851
+ alias: string | string[];
3852
+ extension: string;
3853
+ }
3854
+ declare interface ExtensionAliasOptions {
3855
+ [index: string]: string | string[];
3856
+ }
3850
3857
  type ExternalItem =
3851
3858
  | string
3852
3859
  | RegExp
@@ -4502,6 +4509,42 @@ declare interface HandleModuleCreationOptions {
4502
4509
  */
4503
4510
  connectOrigin?: boolean;
4504
4511
  }
4512
+ declare class HarmonyImportDependency extends ModuleDependency {
4513
+ constructor(
4514
+ request: string,
4515
+ sourceOrder: number,
4516
+ assertions?: Record<string, any>
4517
+ );
4518
+ sourceOrder: number;
4519
+ getImportVar(moduleGraph: ModuleGraph): string;
4520
+ getImportStatement(
4521
+ update: boolean,
4522
+ __1: DependencyTemplateContext
4523
+ ): [string, string];
4524
+ getLinkingErrors(
4525
+ moduleGraph: ModuleGraph,
4526
+ ids: string[],
4527
+ additionalMessage: string
4528
+ ): undefined | WebpackError[];
4529
+ static Template: typeof HarmonyImportDependencyTemplate;
4530
+ static ExportPresenceModes: {
4531
+ NONE: 0;
4532
+ WARN: 1;
4533
+ AUTO: 2;
4534
+ ERROR: 3;
4535
+ fromUserOption(str?: any): 0 | 1 | 2 | 3;
4536
+ };
4537
+ static NO_EXPORTS_REFERENCED: string[][];
4538
+ static EXPORTS_OBJECT_REFERENCED: string[][];
4539
+ static TRANSITIVE: typeof TRANSITIVE;
4540
+ }
4541
+ declare class HarmonyImportDependencyTemplate extends DependencyTemplate {
4542
+ constructor();
4543
+ static getImportEmittedRuntime(
4544
+ module: Module,
4545
+ referencedModule: Module
4546
+ ): undefined | string | boolean | SortableSet<string>;
4547
+ }
4505
4548
  declare class Hash {
4506
4549
  constructor();
4507
4550
 
@@ -9574,6 +9617,7 @@ declare interface ResolveOptionsTypes {
9574
9617
  alias: AliasOption[];
9575
9618
  fallback: AliasOption[];
9576
9619
  aliasFields: Set<string | string[]>;
9620
+ extensionAlias: ExtensionAliasOption[];
9577
9621
  cachePredicate: (arg0: ResolveRequest) => boolean;
9578
9622
  cacheWithContext: boolean;
9579
9623
 
@@ -9672,6 +9716,11 @@ declare interface ResolveOptionsWebpackOptions {
9672
9716
  */
9673
9717
  exportsFields?: string[];
9674
9718
 
9719
+ /**
9720
+ * An object which maps extension to extension aliases.
9721
+ */
9722
+ extensionAlias?: { [index: string]: string | string[] };
9723
+
9675
9724
  /**
9676
9725
  * Extensions added to the request when trying to find the file.
9677
9726
  */
@@ -11884,6 +11933,11 @@ declare interface UserResolveOptions {
11884
11933
  */
11885
11934
  fallback?: AliasOption[] | AliasOptions;
11886
11935
 
11936
+ /**
11937
+ * An object which maps extension to extension aliases
11938
+ */
11939
+ extensionAlias?: ExtensionAliasOptions;
11940
+
11887
11941
  /**
11888
11942
  * A list of alias fields in description files
11889
11943
  */
@@ -12721,7 +12775,12 @@ declare namespace exports {
12721
12775
  ) => void;
12722
12776
  }
12723
12777
  export namespace dependencies {
12724
- export { ModuleDependency, ConstDependency, NullDependency };
12778
+ export {
12779
+ ModuleDependency,
12780
+ HarmonyImportDependency,
12781
+ ConstDependency,
12782
+ NullDependency
12783
+ };
12725
12784
  }
12726
12785
  export namespace ids {
12727
12786
  export {