@module-federation/sdk 0.5.1 → 0.6.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/dist/package.json
CHANGED
|
@@ -150,6 +150,10 @@ export interface ModuleFederationPluginOptions {
|
|
|
150
150
|
* Share scope name used for all shared modules (defaults to 'default').
|
|
151
151
|
*/
|
|
152
152
|
shareScope?: string;
|
|
153
|
+
/**
|
|
154
|
+
* load shared strategy(defaults to 'version-first').
|
|
155
|
+
*/
|
|
156
|
+
shareStrategy?: SharedStrategy;
|
|
153
157
|
/**
|
|
154
158
|
* Modules that should be shared in the share scope. When provided, property names are used to match requested modules in this compilation.
|
|
155
159
|
*/
|
|
@@ -170,6 +174,7 @@ export interface ModuleFederationPluginOptions {
|
|
|
170
174
|
dev?: boolean | PluginDevOptions;
|
|
171
175
|
dts?: boolean | PluginDtsOptions;
|
|
172
176
|
async?: boolean | AsyncBoundaryOptions;
|
|
177
|
+
virtualRuntimeEntry?: boolean;
|
|
173
178
|
}
|
|
174
179
|
/**
|
|
175
180
|
* Modules that should be exposed by this container. Property names are used as public paths.
|
|
@@ -291,6 +296,7 @@ export interface SharedObject {
|
|
|
291
296
|
*/
|
|
292
297
|
[k: string]: SharedConfig | SharedItem;
|
|
293
298
|
}
|
|
299
|
+
export type SharedStrategy = 'version-first' | 'loaded-first';
|
|
294
300
|
/**
|
|
295
301
|
* Advanced configuration for modules that should be shared in the share scope.
|
|
296
302
|
*/
|
|
@@ -319,6 +325,10 @@ export interface SharedConfig {
|
|
|
319
325
|
* Share scope name.
|
|
320
326
|
*/
|
|
321
327
|
shareScope?: string;
|
|
328
|
+
/**
|
|
329
|
+
* load shared strategy(defaults to 'version-first').
|
|
330
|
+
*/
|
|
331
|
+
shareStrategy?: SharedStrategy;
|
|
322
332
|
/**
|
|
323
333
|
* Allow only a single version of the shared module in share scope (disabled by default).
|
|
324
334
|
*/
|