@module-federation/sdk 0.0.0-next-20240411125344 → 0.0.0-next-20240412091739
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,8 +515,7 @@ 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
|
|
519
|
-
version: item.version
|
|
518
|
+
sharedName: item.name
|
|
520
519
|
};
|
|
521
520
|
}),
|
|
522
521
|
modules: exposes === null || exposes === void 0 ? void 0 : exposes.map(function(expose) {
|
package/dist/index.esm.js
CHANGED
|
@@ -511,8 +511,7 @@ 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
|
|
515
|
-
version: item.version
|
|
514
|
+
sharedName: item.name
|
|
516
515
|
};
|
|
517
516
|
}),
|
|
518
517
|
modules: exposes === null || exposes === void 0 ? void 0 : exposes.map(function(expose) {
|
package/dist/package.json
CHANGED
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"types": "./dist/index.cjs.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
+
"types": "./dist/index.cjs.d.ts",
|
|
24
25
|
"import": "./dist/index.esm.js",
|
|
25
|
-
"require": "./dist/index.cjs.js"
|
|
26
|
-
"types": "./dist/index.cjs.d.ts"
|
|
26
|
+
"require": "./dist/index.cjs.js"
|
|
27
27
|
},
|
|
28
28
|
"./normalize-webpack-path": {
|
|
29
|
+
"types": "./dist/normalize-webpack-path.cjs.d.ts",
|
|
29
30
|
"import": "./dist/normalize-webpack-path.esm.js",
|
|
30
|
-
"require": "./dist/normalize-webpack-path.cjs.js"
|
|
31
|
-
"types": "./dist/src/normalize-webpack-path.cjs.d.ts"
|
|
31
|
+
"require": "./dist/normalize-webpack-path.cjs.js"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"typesVersions": {
|
|
@@ -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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/sdk",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240412091739",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "A sdk for support module federation",
|
|
6
6
|
"keywords": [
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"types": "./dist/index.cjs.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
|
+
"types": "./dist/index.cjs.d.ts",
|
|
24
25
|
"import": "./dist/index.esm.js",
|
|
25
|
-
"require": "./dist/index.cjs.js"
|
|
26
|
-
"types": "./dist/index.cjs.d.ts"
|
|
26
|
+
"require": "./dist/index.cjs.js"
|
|
27
27
|
},
|
|
28
28
|
"./normalize-webpack-path": {
|
|
29
|
+
"types": "./dist/normalize-webpack-path.cjs.d.ts",
|
|
29
30
|
"import": "./dist/normalize-webpack-path.esm.js",
|
|
30
|
-
"require": "./dist/normalize-webpack-path.cjs.js"
|
|
31
|
-
"types": "./dist/src/normalize-webpack-path.cjs.d.ts"
|
|
31
|
+
"require": "./dist/normalize-webpack-path.cjs.js"
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
"typesVersions": {
|