@module-federation/manifest 0.8.11 → 0.9.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 CHANGED
@@ -393,22 +393,6 @@ 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
- }
412
396
  return {
413
397
  path: '',
414
398
  name: '',
@@ -1439,7 +1423,7 @@ var StatsManager = /*#__PURE__*/ function() {
1439
1423
  // same as the types supported by runtime, currently only global/var/script is supported
1440
1424
  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'
1441
1425
  },
1442
- types: getTypesMetaInfo(this._options, compiler.context, compilation),
1426
+ types: getTypesMetaInfo(this._options, compiler.context),
1443
1427
  globalName: globalName,
1444
1428
  pluginVersion: this._pluginVersion
1445
1429
  };
package/dist/index.esm.js CHANGED
@@ -391,22 +391,6 @@ 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
- }
410
394
  return {
411
395
  path: '',
412
396
  name: '',
@@ -1437,7 +1421,7 @@ var StatsManager = /*#__PURE__*/ function() {
1437
1421
  // same as the types supported by runtime, currently only global/var/script is supported
1438
1422
  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'
1439
1423
  },
1440
- types: getTypesMetaInfo(this._options, compiler.context, compilation),
1424
+ types: getTypesMetaInfo(this._options, compiler.context),
1441
1425
  globalName: globalName,
1442
1426
  pluginVersion: this._pluginVersion
1443
1427
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/manifest",
3
- "version": "0.8.11",
3
+ "version": "0.9.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.8.11",
33
- "@module-federation/dts-plugin": "0.8.11",
34
- "@module-federation/managers": "0.8.11"
32
+ "@module-federation/sdk": "0.9.0",
33
+ "@module-federation/dts-plugin": "0.9.0",
34
+ "@module-federation/managers": "0.9.0"
35
35
  },
36
36
  "exports": {
37
37
  ".": {