@module-federation/vite 1.14.4 → 1.15.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.
package/lib/index.d.cts CHANGED
@@ -1,11 +1,11 @@
1
- import { Plugin } from "vite";
2
1
  import { ShareStrategy } from "@module-federation/runtime/types";
3
- import { sharePlugin } from "@module-federation/sdk";
2
+ import { moduleFederationPlugin } from "@module-federation/sdk";
4
3
 
5
4
  //#region src/utils/normalizeModuleFederationOptions.d.ts
6
5
  interface RemoteObjectConfig {
7
6
  type?: string;
8
7
  name: string;
8
+ internalName?: string;
9
9
  entry: string;
10
10
  entryGlobalName?: string;
11
11
  shareScope?: string;
@@ -43,7 +43,7 @@ type ModuleFederationOptions = {
43
43
  singleton?: boolean;
44
44
  requiredVersion?: string;
45
45
  strictVersion?: boolean;
46
- import?: sharePlugin.SharedConfig['import'];
46
+ import?: moduleFederationPlugin.SharedConfig['import'];
47
47
  }> | undefined;
48
48
  runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
49
49
  getPublicPath?: string;
@@ -134,6 +134,6 @@ interface DtsHostOptions {
134
134
  }
135
135
  //#endregion
136
136
  //#region src/index.d.ts
137
- declare function federation(mfUserOptions: ModuleFederationOptions): Plugin[];
137
+ declare function federation(mfUserOptions: ModuleFederationOptions): any[];
138
138
  //#endregion
139
139
  export { type ModuleFederationOptions, type PluginManifestOptions, federation };
package/lib/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
- import { Plugin } from "vite";
2
- import { sharePlugin } from "@module-federation/sdk";
1
+ import { moduleFederationPlugin } from "@module-federation/sdk";
3
2
  import { ShareStrategy } from "@module-federation/runtime/types";
4
3
 
5
4
  //#region src/utils/normalizeModuleFederationOptions.d.ts
6
5
  interface RemoteObjectConfig {
7
6
  type?: string;
8
7
  name: string;
8
+ internalName?: string;
9
9
  entry: string;
10
10
  entryGlobalName?: string;
11
11
  shareScope?: string;
@@ -43,7 +43,7 @@ type ModuleFederationOptions = {
43
43
  singleton?: boolean;
44
44
  requiredVersion?: string;
45
45
  strictVersion?: boolean;
46
- import?: sharePlugin.SharedConfig['import'];
46
+ import?: moduleFederationPlugin.SharedConfig['import'];
47
47
  }> | undefined;
48
48
  runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
49
49
  getPublicPath?: string;
@@ -134,6 +134,6 @@ interface DtsHostOptions {
134
134
  }
135
135
  //#endregion
136
136
  //#region src/index.d.ts
137
- declare function federation(mfUserOptions: ModuleFederationOptions): Plugin[];
137
+ declare function federation(mfUserOptions: ModuleFederationOptions): any[];
138
138
  //#endregion
139
139
  export { type ModuleFederationOptions, type PluginManifestOptions, federation };