@module-federation/manifest 0.12.0 → 0.13.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/index.cjs.js +13 -19
- package/dist/index.esm.js +13 -19
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -69,7 +69,7 @@ function _non_iterable_rest$2() {
|
|
|
69
69
|
function _non_iterable_spread$1() {
|
|
70
70
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
71
71
|
}
|
|
72
|
-
function _object_spread$
|
|
72
|
+
function _object_spread$2(target) {
|
|
73
73
|
for(var i = 1; i < arguments.length; i++){
|
|
74
74
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
75
75
|
var ownKeys = Object.keys(source);
|
|
@@ -387,7 +387,7 @@ function getTypesMetaInfo(pluginOptions, context, compilation) {
|
|
|
387
387
|
if (normalizedRemote === false) {
|
|
388
388
|
return defaultTypesMetaInfo;
|
|
389
389
|
}
|
|
390
|
-
var _retrieveTypesAssetsInfo = core.retrieveTypesAssetsInfo(_object_spread_props$2(_object_spread$
|
|
390
|
+
var _retrieveTypesAssetsInfo = core.retrieveTypesAssetsInfo(_object_spread_props$2(_object_spread$2({}, normalizedRemote), {
|
|
391
391
|
context: context,
|
|
392
392
|
moduleFederationConfig: pluginOptions
|
|
393
393
|
})), apiFileName = _retrieveTypesAssetsInfo.apiFileName, zipName = _retrieveTypesAssetsInfo.zipName, zipPrefix = _retrieveTypesAssetsInfo.zipPrefix;
|
|
@@ -465,21 +465,6 @@ function _define_property$3(obj, key, value) {
|
|
|
465
465
|
}
|
|
466
466
|
return obj;
|
|
467
467
|
}
|
|
468
|
-
function _object_spread$2(target) {
|
|
469
|
-
for(var i = 1; i < arguments.length; i++){
|
|
470
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
471
|
-
var ownKeys = Object.keys(source);
|
|
472
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
473
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
474
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
475
|
-
}));
|
|
476
|
-
}
|
|
477
|
-
ownKeys.forEach(function(key) {
|
|
478
|
-
_define_property$3(target, key, source[key]);
|
|
479
|
-
});
|
|
480
|
-
}
|
|
481
|
-
return target;
|
|
482
|
-
}
|
|
483
468
|
function _ts_generator$2(thisArg, body) {
|
|
484
469
|
var f, y, t, g, _ = {
|
|
485
470
|
label: 0,
|
|
@@ -606,13 +591,22 @@ var ManifestManager = /*#__PURE__*/ function() {
|
|
|
606
591
|
var extraOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
607
592
|
var _this = this;
|
|
608
593
|
return _async_to_generator$2(function() {
|
|
609
|
-
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest, manifestFileName, ret;
|
|
594
|
+
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, id, name, metaData, manifest, manifestFileName, ret;
|
|
610
595
|
return _ts_generator$2(this, function(_state) {
|
|
611
596
|
switch(_state.label){
|
|
612
597
|
case 0:
|
|
613
598
|
compilation = options.compilation, publicPath = options.publicPath, stats = options.stats, compiler = options.compiler, bundler = options.bundler, additionalData = options.additionalData;
|
|
614
599
|
disableEmit = extraOptions.disableEmit;
|
|
615
|
-
manifest
|
|
600
|
+
// Initialize manifest with required properties from stats
|
|
601
|
+
id = stats.id, name = stats.name, metaData = stats.metaData;
|
|
602
|
+
manifest = {
|
|
603
|
+
id: id,
|
|
604
|
+
name: name,
|
|
605
|
+
metaData: metaData,
|
|
606
|
+
shared: [],
|
|
607
|
+
remotes: [],
|
|
608
|
+
exposes: []
|
|
609
|
+
};
|
|
616
610
|
manifest.exposes = stats.exposes.reduce(function(sum, cur) {
|
|
617
611
|
var expose = {
|
|
618
612
|
id: cur.id,
|
package/dist/index.esm.js
CHANGED
|
@@ -67,7 +67,7 @@ function _non_iterable_rest$2() {
|
|
|
67
67
|
function _non_iterable_spread$1() {
|
|
68
68
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
69
69
|
}
|
|
70
|
-
function _object_spread$
|
|
70
|
+
function _object_spread$2(target) {
|
|
71
71
|
for(var i = 1; i < arguments.length; i++){
|
|
72
72
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
73
73
|
var ownKeys = Object.keys(source);
|
|
@@ -385,7 +385,7 @@ function getTypesMetaInfo(pluginOptions, context, compilation) {
|
|
|
385
385
|
if (normalizedRemote === false) {
|
|
386
386
|
return defaultTypesMetaInfo;
|
|
387
387
|
}
|
|
388
|
-
var _retrieveTypesAssetsInfo = retrieveTypesAssetsInfo(_object_spread_props$2(_object_spread$
|
|
388
|
+
var _retrieveTypesAssetsInfo = retrieveTypesAssetsInfo(_object_spread_props$2(_object_spread$2({}, normalizedRemote), {
|
|
389
389
|
context: context,
|
|
390
390
|
moduleFederationConfig: pluginOptions
|
|
391
391
|
})), apiFileName = _retrieveTypesAssetsInfo.apiFileName, zipName = _retrieveTypesAssetsInfo.zipName, zipPrefix = _retrieveTypesAssetsInfo.zipPrefix;
|
|
@@ -463,21 +463,6 @@ function _define_property$3(obj, key, value) {
|
|
|
463
463
|
}
|
|
464
464
|
return obj;
|
|
465
465
|
}
|
|
466
|
-
function _object_spread$2(target) {
|
|
467
|
-
for(var i = 1; i < arguments.length; i++){
|
|
468
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
469
|
-
var ownKeys = Object.keys(source);
|
|
470
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
471
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
472
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
473
|
-
}));
|
|
474
|
-
}
|
|
475
|
-
ownKeys.forEach(function(key) {
|
|
476
|
-
_define_property$3(target, key, source[key]);
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
return target;
|
|
480
|
-
}
|
|
481
466
|
function _ts_generator$2(thisArg, body) {
|
|
482
467
|
var f, y, t, g, _ = {
|
|
483
468
|
label: 0,
|
|
@@ -604,13 +589,22 @@ var ManifestManager = /*#__PURE__*/ function() {
|
|
|
604
589
|
var extraOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
605
590
|
var _this = this;
|
|
606
591
|
return _async_to_generator$2(function() {
|
|
607
|
-
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest, manifestFileName, ret;
|
|
592
|
+
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, id, name, metaData, manifest, manifestFileName, ret;
|
|
608
593
|
return _ts_generator$2(this, function(_state) {
|
|
609
594
|
switch(_state.label){
|
|
610
595
|
case 0:
|
|
611
596
|
compilation = options.compilation, publicPath = options.publicPath, stats = options.stats, compiler = options.compiler, bundler = options.bundler, additionalData = options.additionalData;
|
|
612
597
|
disableEmit = extraOptions.disableEmit;
|
|
613
|
-
manifest
|
|
598
|
+
// Initialize manifest with required properties from stats
|
|
599
|
+
id = stats.id, name = stats.name, metaData = stats.metaData;
|
|
600
|
+
manifest = {
|
|
601
|
+
id: id,
|
|
602
|
+
name: name,
|
|
603
|
+
metaData: metaData,
|
|
604
|
+
shared: [],
|
|
605
|
+
remotes: [],
|
|
606
|
+
exposes: []
|
|
607
|
+
};
|
|
614
608
|
manifest.exposes = stats.exposes.reduce(function(sum, cur) {
|
|
615
609
|
var expose = {
|
|
616
610
|
id: cur.id,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/manifest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Provide manifest/stats for webpack/rspack MF project .",
|
|
6
6
|
"keywords": [
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"find-pkg": "2.0.0",
|
|
31
31
|
"chalk": "3.0.0",
|
|
32
|
-
"@module-federation/sdk": "0.
|
|
33
|
-
"@module-federation/dts-plugin": "0.
|
|
34
|
-
"@module-federation/managers": "0.
|
|
32
|
+
"@module-federation/sdk": "0.13.0",
|
|
33
|
+
"@module-federation/dts-plugin": "0.13.0",
|
|
34
|
+
"@module-federation/managers": "0.13.0"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|