@module-federation/manifest 0.0.0-next-20240701101956 → 0.0.0-next-20240704021704

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
@@ -2,18 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var path = require('path');
6
- var fs = require('fs');
7
5
  var chalk = require('chalk');
6
+ var path = require('path');
8
7
  var sdk = require('@module-federation/sdk');
9
8
  var core = require('@module-federation/dts-plugin/core');
10
9
  var managers = require('@module-federation/managers');
11
10
 
12
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
12
 
14
- var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
15
- var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
16
13
  var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
14
+ var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
17
15
 
18
16
  var PLUGIN_IDENTIFIER = 'Module Federation Manifest Plugin';
19
17
  var HOT_UPDATE_SUFFIX = '.hot-update';
@@ -658,7 +656,7 @@ var ManifestManager = /*#__PURE__*/ function() {
658
656
  value: function generateManifest(options) {
659
657
  var _this = this;
660
658
  return _async_to_generator$2(function() {
661
- var compilation, publicPath, stats, compiler, bundler, additionalData, manifest, prefetchInterface, prefetchFilePath, existPrefetch, content, manifestFileName, ret;
659
+ var compilation, publicPath, stats, compiler, bundler, additionalData, manifest, manifestFileName, ret;
662
660
  return _ts_generator$2(this, function(_state) {
663
661
  switch(_state.label){
664
662
  case 0:
@@ -707,16 +705,6 @@ var ManifestManager = /*#__PURE__*/ function() {
707
705
  sum.push(remote);
708
706
  return sum;
709
707
  }, []);
710
- prefetchInterface = false;
711
- prefetchFilePath = path__default["default"].resolve(compiler.options.context || process.cwd(), "node_modules/.mf/".concat(sdk.encodeName(stats.name), "/").concat(sdk.MFPrefetchCommon.fileName));
712
- existPrefetch = fs__default["default"].existsSync(prefetchFilePath);
713
- if (existPrefetch) {
714
- content = fs__default["default"].readFileSync(prefetchFilePath).toString();
715
- if (content) {
716
- prefetchInterface = true;
717
- }
718
- }
719
- stats.metaData.prefetchInterface = prefetchInterface;
720
708
  _this._manifest = manifest;
721
709
  manifestFileName = _this.fileName;
722
710
  if (!additionalData) return [
package/dist/index.esm.js CHANGED
@@ -1,7 +1,6 @@
1
- import path from 'path';
2
- import fs from 'fs';
3
1
  import chalk from 'chalk';
4
- import { StatsFileName, ManifestFileName, simpleJoinRemoteEntry, normalizeOptions, encodeName, MFPrefetchCommon } from '@module-federation/sdk';
2
+ import path from 'path';
3
+ import { StatsFileName, ManifestFileName, simpleJoinRemoteEntry, normalizeOptions } from '@module-federation/sdk';
5
4
  import { isTSProject, retrieveTypesAssetsInfo } from '@module-federation/dts-plugin/core';
6
5
  import { RemoteManager, SharedManager, ContainerManager, PKGJsonManager, utils } from '@module-federation/managers';
7
6
 
@@ -648,7 +647,7 @@ var ManifestManager = /*#__PURE__*/ function() {
648
647
  value: function generateManifest(options) {
649
648
  var _this = this;
650
649
  return _async_to_generator$2(function() {
651
- var compilation, publicPath, stats, compiler, bundler, additionalData, manifest, prefetchInterface, prefetchFilePath, existPrefetch, content, manifestFileName, ret;
650
+ var compilation, publicPath, stats, compiler, bundler, additionalData, manifest, manifestFileName, ret;
652
651
  return _ts_generator$2(this, function(_state) {
653
652
  switch(_state.label){
654
653
  case 0:
@@ -697,16 +696,6 @@ var ManifestManager = /*#__PURE__*/ function() {
697
696
  sum.push(remote);
698
697
  return sum;
699
698
  }, []);
700
- prefetchInterface = false;
701
- prefetchFilePath = path.resolve(compiler.options.context || process.cwd(), "node_modules/.mf/".concat(encodeName(stats.name), "/").concat(MFPrefetchCommon.fileName));
702
- existPrefetch = fs.existsSync(prefetchFilePath);
703
- if (existPrefetch) {
704
- content = fs.readFileSync(prefetchFilePath).toString();
705
- if (content) {
706
- prefetchInterface = true;
707
- }
708
- }
709
- stats.metaData.prefetchInterface = prefetchInterface;
710
699
  _this._manifest = manifest;
711
700
  manifestFileName = _this.fileName;
712
701
  if (!additionalData) return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/manifest",
3
- "version": "0.0.0-next-20240701101956",
3
+ "version": "0.0.0-next-20240704021704",
4
4
  "license": "MIT",
5
5
  "description": "Provide manifest/stats for webpack/rspack MF project .",
6
6
  "keywords": [
@@ -24,9 +24,9 @@
24
24
  "dependencies": {
25
25
  "find-pkg": "2.0.0",
26
26
  "chalk": "3.0.0",
27
- "@module-federation/sdk": "0.0.0-next-20240701101956",
28
- "@module-federation/dts-plugin": "0.0.0-next-20240701101956",
29
- "@module-federation/managers": "0.0.0-next-20240701101956"
27
+ "@module-federation/sdk": "0.0.0-next-20240704021704",
28
+ "@module-federation/dts-plugin": "0.0.0-next-20240704021704",
29
+ "@module-federation/managers": "0.0.0-next-20240704021704"
30
30
  },
31
31
  "exports": {
32
32
  ".": {