@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.
@@ -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): Plugin[];
7
+ export default function (excludeFn: Function, options: {
8
+ moduleParseTimeout: number;
9
+ }): Plugin[];
8
10
  export { parsePromise };
@@ -0,0 +1,3 @@
1
+ import { Plugin } from 'vite';
2
+ declare const VarRemoteEntry: () => Plugin[];
3
+ export default VarRemoteEntry;
@@ -0,0 +1,2 @@
1
+ import { OutputBundle } from 'rollup';
2
+ export declare function findRemoteEntryFile(filename: string, bundle: OutputBundle): string | undefined;
@@ -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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/vite",
3
- "version": "1.9.8",
3
+ "version": "1.11.0",
4
4
  "description": "Vite plugin for Module Federation",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",