@module-federation/sdk 0.1.4 → 0.1.6
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/index.cjs.js
CHANGED
|
@@ -515,7 +515,8 @@ function generateSnapshotFromManifest(manifest) {
|
|
|
515
515
|
shared: manifest === null || manifest === void 0 ? void 0 : manifest.shared.map(function(item) {
|
|
516
516
|
return {
|
|
517
517
|
assets: item.assets,
|
|
518
|
-
sharedName: item.name
|
|
518
|
+
sharedName: item.name,
|
|
519
|
+
version: item.version
|
|
519
520
|
};
|
|
520
521
|
}),
|
|
521
522
|
modules: exposes === null || exposes === void 0 ? void 0 : exposes.map(function(expose) {
|
package/dist/index.esm.js
CHANGED
|
@@ -511,7 +511,8 @@ function generateSnapshotFromManifest(manifest) {
|
|
|
511
511
|
shared: manifest === null || manifest === void 0 ? void 0 : manifest.shared.map(function(item) {
|
|
512
512
|
return {
|
|
513
513
|
assets: item.assets,
|
|
514
|
-
sharedName: item.name
|
|
514
|
+
sharedName: item.name,
|
|
515
|
+
version: item.version
|
|
515
516
|
};
|
|
516
517
|
}),
|
|
517
518
|
modules: exposes === null || exposes === void 0 ? void 0 : exposes.map(function(expose) {
|
package/dist/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
2
|
import { Stats } from '../stats';
|
|
3
|
+
import { Manifest } from '../manifest';
|
|
3
4
|
/**
|
|
4
5
|
* 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.
|
|
5
6
|
*/
|
|
@@ -66,6 +67,7 @@ export type Shared = (SharedItem | SharedObject)[] | SharedObject;
|
|
|
66
67
|
export type SharedItem = string;
|
|
67
68
|
export interface AdditionalDataOptions {
|
|
68
69
|
stats: Stats;
|
|
70
|
+
manifest?: Manifest;
|
|
69
71
|
pluginOptions: ModuleFederationPluginOptions;
|
|
70
72
|
compiler: webpack.Compiler;
|
|
71
73
|
compilation: webpack.Compilation;
|