@module-federation/manifest 0.0.0-next-20250121111439 → 0.0.0-next-20250126023024
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 +17 -1
- package/dist/index.esm.js +17 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -393,6 +393,22 @@ function getTypesMetaInfo(pluginOptions, context, compilation) {
|
|
|
393
393
|
})), apiFileName = _retrieveTypesAssetsInfo.apiFileName, zipName = _retrieveTypesAssetsInfo.zipName, zipPrefix = _retrieveTypesAssetsInfo.zipPrefix;
|
|
394
394
|
var zip = path.join(zipPrefix, zipName);
|
|
395
395
|
var api = path.join(zipPrefix, apiFileName);
|
|
396
|
+
if (!zip || !compilation.getAsset(zip)) {
|
|
397
|
+
return {
|
|
398
|
+
path: '',
|
|
399
|
+
name: '',
|
|
400
|
+
zip: '',
|
|
401
|
+
api: ''
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
if (!api || !compilation.getAsset(api)) {
|
|
405
|
+
return {
|
|
406
|
+
path: '',
|
|
407
|
+
name: '',
|
|
408
|
+
zip: zip,
|
|
409
|
+
api: ''
|
|
410
|
+
};
|
|
411
|
+
}
|
|
396
412
|
return {
|
|
397
413
|
path: '',
|
|
398
414
|
name: '',
|
|
@@ -1423,7 +1439,7 @@ var StatsManager = /*#__PURE__*/ function() {
|
|
|
1423
1439
|
// same as the types supported by runtime, currently only global/var/script is supported
|
|
1424
1440
|
type: ((_this__options = this._options) === null || _this__options === void 0 ? void 0 : (_this__options_library = _this__options.library) === null || _this__options_library === void 0 ? void 0 : _this__options_library.type) || 'global'
|
|
1425
1441
|
},
|
|
1426
|
-
types: getTypesMetaInfo(this._options, compiler.context),
|
|
1442
|
+
types: getTypesMetaInfo(this._options, compiler.context, compilation),
|
|
1427
1443
|
globalName: globalName,
|
|
1428
1444
|
pluginVersion: this._pluginVersion
|
|
1429
1445
|
};
|
package/dist/index.esm.js
CHANGED
|
@@ -391,6 +391,22 @@ function getTypesMetaInfo(pluginOptions, context, compilation) {
|
|
|
391
391
|
})), apiFileName = _retrieveTypesAssetsInfo.apiFileName, zipName = _retrieveTypesAssetsInfo.zipName, zipPrefix = _retrieveTypesAssetsInfo.zipPrefix;
|
|
392
392
|
var zip = path.join(zipPrefix, zipName);
|
|
393
393
|
var api = path.join(zipPrefix, apiFileName);
|
|
394
|
+
if (!zip || !compilation.getAsset(zip)) {
|
|
395
|
+
return {
|
|
396
|
+
path: '',
|
|
397
|
+
name: '',
|
|
398
|
+
zip: '',
|
|
399
|
+
api: ''
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
if (!api || !compilation.getAsset(api)) {
|
|
403
|
+
return {
|
|
404
|
+
path: '',
|
|
405
|
+
name: '',
|
|
406
|
+
zip: zip,
|
|
407
|
+
api: ''
|
|
408
|
+
};
|
|
409
|
+
}
|
|
394
410
|
return {
|
|
395
411
|
path: '',
|
|
396
412
|
name: '',
|
|
@@ -1421,7 +1437,7 @@ var StatsManager = /*#__PURE__*/ function() {
|
|
|
1421
1437
|
// same as the types supported by runtime, currently only global/var/script is supported
|
|
1422
1438
|
type: ((_this__options = this._options) === null || _this__options === void 0 ? void 0 : (_this__options_library = _this__options.library) === null || _this__options_library === void 0 ? void 0 : _this__options_library.type) || 'global'
|
|
1423
1439
|
},
|
|
1424
|
-
types: getTypesMetaInfo(this._options, compiler.context),
|
|
1440
|
+
types: getTypesMetaInfo(this._options, compiler.context, compilation),
|
|
1425
1441
|
globalName: globalName,
|
|
1426
1442
|
pluginVersion: this._pluginVersion
|
|
1427
1443
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/manifest",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20250126023024",
|
|
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.0.0-next-
|
|
33
|
-
"@module-federation/dts-plugin": "0.0.0-next-
|
|
34
|
-
"@module-federation/managers": "0.0.0-next-
|
|
32
|
+
"@module-federation/sdk": "0.0.0-next-20250126023024",
|
|
33
|
+
"@module-federation/dts-plugin": "0.0.0-next-20250126023024",
|
|
34
|
+
"@module-federation/managers": "0.0.0-next-20250126023024"
|
|
35
35
|
},
|
|
36
36
|
"exports": {
|
|
37
37
|
".": {
|