@module-federation/vite 1.14.5 → 1.15.1

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,6 +1,5 @@
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 {
@@ -44,7 +43,7 @@ type ModuleFederationOptions = {
44
43
  singleton?: boolean;
45
44
  requiredVersion?: string;
46
45
  strictVersion?: boolean;
47
- import?: sharePlugin.SharedConfig['import'];
46
+ import?: moduleFederationPlugin.SharedConfig['import'];
48
47
  }> | undefined;
49
48
  runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
50
49
  getPublicPath?: string;
@@ -135,6 +134,6 @@ interface DtsHostOptions {
135
134
  }
136
135
  //#endregion
137
136
  //#region src/index.d.ts
138
- declare function federation(mfUserOptions: ModuleFederationOptions): Plugin[];
137
+ declare function federation(mfUserOptions: ModuleFederationOptions): any[];
139
138
  //#endregion
140
139
  export { type ModuleFederationOptions, type PluginManifestOptions, federation };
package/lib/index.d.mts CHANGED
@@ -1,5 +1,4 @@
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
@@ -44,7 +43,7 @@ type ModuleFederationOptions = {
44
43
  singleton?: boolean;
45
44
  requiredVersion?: string;
46
45
  strictVersion?: boolean;
47
- import?: sharePlugin.SharedConfig['import'];
46
+ import?: moduleFederationPlugin.SharedConfig['import'];
48
47
  }> | undefined;
49
48
  runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
50
49
  getPublicPath?: string;
@@ -135,6 +134,6 @@ interface DtsHostOptions {
135
134
  }
136
135
  //#endregion
137
136
  //#region src/index.d.ts
138
- declare function federation(mfUserOptions: ModuleFederationOptions): Plugin[];
137
+ declare function federation(mfUserOptions: ModuleFederationOptions): any[];
139
138
  //#endregion
140
139
  export { type ModuleFederationOptions, type PluginManifestOptions, federation };