@module-federation/vite 1.13.5 → 1.13.7
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/README.md +33 -13
- package/lib/index.cjs +418 -211
- package/lib/index.d.cts +3 -3
- package/lib/index.d.mts +4 -4
- package/lib/index.mjs +418 -211
- package/package.json +4 -4
package/lib/index.d.cts
CHANGED
|
@@ -10,7 +10,7 @@ interface RemoteObjectConfig {
|
|
|
10
10
|
entryGlobalName?: string;
|
|
11
11
|
shareScope?: string;
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
13
|
+
interface PluginManifestOptions {
|
|
14
14
|
filePath?: string;
|
|
15
15
|
disableAssetsAnalyze?: boolean;
|
|
16
16
|
fileName?: string;
|
|
@@ -48,7 +48,7 @@ type ModuleFederationOptions = {
|
|
|
48
48
|
runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
|
|
49
49
|
getPublicPath?: string;
|
|
50
50
|
implementation?: string;
|
|
51
|
-
manifest?:
|
|
51
|
+
manifest?: PluginManifestOptions | boolean;
|
|
52
52
|
dev?: boolean | PluginDevOptions;
|
|
53
53
|
dts?: boolean | PluginDtsOptions;
|
|
54
54
|
shareStrategy?: ShareStrategy;
|
|
@@ -135,4 +135,4 @@ interface DtsHostOptions {
|
|
|
135
135
|
//#region src/index.d.ts
|
|
136
136
|
declare function federation(mfUserOptions: ModuleFederationOptions): Plugin[];
|
|
137
137
|
//#endregion
|
|
138
|
-
export { type ModuleFederationOptions, federation };
|
|
138
|
+
export { type ModuleFederationOptions, type PluginManifestOptions, federation };
|
package/lib/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { sharePlugin } from "@module-federation/sdk";
|
|
2
1
|
import { Plugin } from "vite";
|
|
2
|
+
import { sharePlugin } from "@module-federation/sdk";
|
|
3
3
|
import { ShareStrategy } from "@module-federation/runtime/types";
|
|
4
4
|
|
|
5
5
|
//#region src/utils/normalizeModuleFederationOptions.d.ts
|
|
@@ -10,7 +10,7 @@ interface RemoteObjectConfig {
|
|
|
10
10
|
entryGlobalName?: string;
|
|
11
11
|
shareScope?: string;
|
|
12
12
|
}
|
|
13
|
-
interface
|
|
13
|
+
interface PluginManifestOptions {
|
|
14
14
|
filePath?: string;
|
|
15
15
|
disableAssetsAnalyze?: boolean;
|
|
16
16
|
fileName?: string;
|
|
@@ -48,7 +48,7 @@ type ModuleFederationOptions = {
|
|
|
48
48
|
runtimePlugins?: Array<string | [string, Record<string, unknown>]>;
|
|
49
49
|
getPublicPath?: string;
|
|
50
50
|
implementation?: string;
|
|
51
|
-
manifest?:
|
|
51
|
+
manifest?: PluginManifestOptions | boolean;
|
|
52
52
|
dev?: boolean | PluginDevOptions;
|
|
53
53
|
dts?: boolean | PluginDtsOptions;
|
|
54
54
|
shareStrategy?: ShareStrategy;
|
|
@@ -135,4 +135,4 @@ interface DtsHostOptions {
|
|
|
135
135
|
//#region src/index.d.ts
|
|
136
136
|
declare function federation(mfUserOptions: ModuleFederationOptions): Plugin[];
|
|
137
137
|
//#endregion
|
|
138
|
-
export { type ModuleFederationOptions, federation };
|
|
138
|
+
export { type ModuleFederationOptions, type PluginManifestOptions, federation };
|