@module-federation/sdk 0.0.0-next-20240515125630 → 0.0.0-next-20240516030852

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.
@@ -111,6 +111,10 @@ export interface PluginDtsOptions {
111
111
  extraOptions?: Record<string, any>;
112
112
  implementation?: string;
113
113
  }
114
+ export type AsyncBoundaryOptions = {
115
+ eager?: RegExp | ((module: any) => boolean);
116
+ excludeChunk?: (chunk: any) => boolean;
117
+ };
114
118
  export interface ModuleFederationPluginOptions {
115
119
  /**
116
120
  * Modules that should be exposed by this container. When provided, property name is used as public name, otherwise public name is automatically inferred from request.
@@ -159,7 +163,7 @@ export interface ModuleFederationPluginOptions {
159
163
  manifest?: boolean | PluginManifestOptions;
160
164
  dev?: boolean | PluginDevOptions;
161
165
  dts?: boolean | PluginDtsOptions;
162
- async?: boolean;
166
+ async?: boolean | AsyncBoundaryOptions;
163
167
  }
164
168
  /**
165
169
  * Modules that should be exposed by this container. Property names are used as public paths.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.0.0-next-20240515125630",
3
+ "version": "0.0.0-next-20240516030852",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [