@module-federation/vite 1.9.8 → 1.10.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 };
@@ -67,6 +67,11 @@ 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;
70
75
  };
71
76
  export interface NormalizedModuleFederationOptions {
72
77
  exposes: Record<string, ExposesItem>;
@@ -94,6 +99,7 @@ export interface NormalizedModuleFederationOptions {
94
99
  * When true, all CSS assets are bundled into every exposed module.
95
100
  */
96
101
  bundleAllCSS: boolean;
102
+ moduleParseTimeout: number;
97
103
  }
98
104
  type HostInitInjectLocationOptions = 'entry' | 'html';
99
105
  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.10.0",
4
4
  "description": "Vite plugin for Module Federation",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",