@module-federation/vite 1.9.8 → 1.11.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/README.md +4 -0
- package/lib/index.cjs +1241 -1080
- package/lib/index.esm.js +1241 -1080
- package/lib/index.modern.js +1673 -1492
- package/lib/index.umd.js +1241 -1080
- package/lib/plugins/pluginModuleParseEnd.d.ts +3 -1
- package/lib/plugins/pluginVarRemoteEntry.d.ts +3 -0
- package/lib/utils/bundleHelpers.d.ts +2 -0
- package/lib/utils/normalizeModuleFederationOptions.d.ts +11 -0
- package/package.json +1 -1
|
@@ -4,5 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Plugin } from 'vite';
|
|
6
6
|
declare let parsePromise: Promise<unknown>;
|
|
7
|
-
export default function (excludeFn: Function
|
|
7
|
+
export default function (excludeFn: Function, options: {
|
|
8
|
+
moduleParseTimeout: number;
|
|
9
|
+
}): Plugin[];
|
|
8
10
|
export { parsePromise };
|
|
@@ -67,6 +67,15 @@ export type ModuleFederationOptions = {
|
|
|
67
67
|
ignoreOrigin?: boolean;
|
|
68
68
|
virtualModuleDir?: string;
|
|
69
69
|
hostInitInjectLocation?: HostInitInjectLocationOptions;
|
|
70
|
+
/**
|
|
71
|
+
* Timeout for parsing modules in seconds.
|
|
72
|
+
* Defaults to 10 seconds.
|
|
73
|
+
*/
|
|
74
|
+
moduleParseTimeout?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Allows generate additional remoteEntry file for "var" host environment
|
|
77
|
+
*/
|
|
78
|
+
varFilename?: string;
|
|
70
79
|
};
|
|
71
80
|
export interface NormalizedModuleFederationOptions {
|
|
72
81
|
exposes: Record<string, ExposesItem>;
|
|
@@ -94,6 +103,8 @@ export interface NormalizedModuleFederationOptions {
|
|
|
94
103
|
* When true, all CSS assets are bundled into every exposed module.
|
|
95
104
|
*/
|
|
96
105
|
bundleAllCSS: boolean;
|
|
106
|
+
moduleParseTimeout: number;
|
|
107
|
+
varFilename?: string;
|
|
97
108
|
}
|
|
98
109
|
type HostInitInjectLocationOptions = 'entry' | 'html';
|
|
99
110
|
interface PluginDevOptions {
|