@module-federation/manifest 0.0.0-next-20240708090519 → 0.0.0-next-20240709063914

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
@@ -654,52 +654,53 @@ var ManifestManager = /*#__PURE__*/ function() {
654
654
  {
655
655
  key: "generateManifest",
656
656
  value: function generateManifest(options) {
657
- var extraOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
658
657
  var _this = this;
659
658
  return _async_to_generator$2(function() {
660
- var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest, manifestFileName, ret;
659
+ var compilation, publicPath, stats, compiler, bundler, additionalData, manifest, manifestFileName, ret;
661
660
  return _ts_generator$2(this, function(_state) {
662
661
  switch(_state.label){
663
662
  case 0:
664
663
  compilation = options.compilation, publicPath = options.publicPath, stats = options.stats, compiler = options.compiler, bundler = options.bundler, additionalData = options.additionalData;
665
- disableEmit = extraOptions.disableEmit;
666
664
  manifest = _object_spread$2({}, stats);
667
- manifest.exposes = stats.exposes.reduce(function(sum, cur) {
665
+ manifest.exposes = Object.keys(stats.exposes).reduce(function(sum, cur) {
666
+ var statsExpose = manifest.exposes[cur];
668
667
  var expose = {
669
- id: cur.id,
670
- name: cur.name,
671
- assets: cur.assets,
672
- path: cur.path
668
+ id: statsExpose.id,
669
+ name: statsExpose.name,
670
+ assets: statsExpose.assets,
671
+ path: statsExpose.path
673
672
  };
674
673
  sum.push(expose);
675
674
  return sum;
676
675
  }, []);
677
- manifest.shared = stats.shared.reduce(function(sum, cur) {
676
+ manifest.shared = Object.keys(stats.shared).reduce(function(sum, cur) {
677
+ var statsShared = manifest.shared[cur];
678
678
  var shared = {
679
- id: cur.id,
680
- name: cur.name,
681
- version: cur.version,
682
- singleton: cur.singleton,
683
- requiredVersion: cur.requiredVersion,
684
- hash: cur.hash,
685
- assets: cur.assets
679
+ id: statsShared.id,
680
+ name: statsShared.name,
681
+ version: statsShared.version,
682
+ singleton: statsShared.singleton,
683
+ requiredVersion: statsShared.requiredVersion,
684
+ hash: statsShared.hash,
685
+ assets: statsShared.assets
686
686
  };
687
687
  sum.push(shared);
688
688
  return sum;
689
689
  }, []);
690
- manifest.remotes = stats.remotes.reduce(function(sum, cur) {
690
+ manifest.remotes = Object.keys(stats.remotes).reduce(function(sum, cur) {
691
+ var statsRemote = manifest.remotes[cur];
691
692
  // @ts-ignore version/entry will be added as follow
692
693
  var remote = {
693
- federationContainerName: cur.federationContainerName,
694
- moduleName: cur.moduleName,
695
- alias: cur.alias
694
+ federationContainerName: statsRemote.federationContainerName,
695
+ moduleName: statsRemote.moduleName,
696
+ alias: statsRemote.alias
696
697
  };
697
- if ('entry' in cur) {
698
+ if ('entry' in statsRemote) {
698
699
  // @ts-ignore
699
- remote.entry = cur.entry;
700
- } else if ('version' in cur) {
700
+ remote.entry = statsRemote.entry;
701
+ } else if ('version' in statsRemote) {
701
702
  // @ts-ignore
702
- remote.entry = cur.version;
703
+ remote.entry = statsRemote.version;
703
704
  }
704
705
  sum.push(remote);
705
706
  return sum;
@@ -726,18 +727,12 @@ var ManifestManager = /*#__PURE__*/ function() {
726
727
  _this._manifest = ret || _this._manifest;
727
728
  _state.label = 2;
728
729
  case 2:
729
- if (!disableEmit) {
730
- compilation.emitAsset(manifestFileName, new compiler.webpack.sources.RawSource(JSON.stringify(_this._manifest, null, 2)));
731
- }
730
+ compilation.emitAsset(manifestFileName, new compiler.webpack.sources.RawSource(JSON.stringify(_this._manifest, null, 2)));
732
731
  if (isDev()) {
733
732
  console.log(chalk__default["default"](_templateObject$1(), PLUGIN_IDENTIFIER, publicPath === 'auto' ? '{auto}/' : publicPath, manifestFileName));
734
733
  }
735
734
  return [
736
- 2,
737
- {
738
- manifest: _this._manifest,
739
- filename: manifestFileName
740
- }
735
+ 2
741
736
  ];
742
737
  }
743
738
  });
@@ -1787,11 +1782,10 @@ var StatsManager = /*#__PURE__*/ function() {
1787
1782
  },
1788
1783
  {
1789
1784
  key: "generateStats",
1790
- value: function generateStats(compiler, compilation) {
1791
- var extraOptions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1785
+ value: function generateStats(compiler, compilation, extraOptions) {
1792
1786
  var _this = this;
1793
1787
  return _async_to_generator$1(function() {
1794
- var disableEmit, existedStats, _this__options, tmp, manifestOptions, stats, ret, err;
1788
+ var existedStats, _this__options, tmp, manifestOptions, stats, ret, err;
1795
1789
  return _ts_generator$1(this, function(_state) {
1796
1790
  switch(_state.label){
1797
1791
  case 0:
@@ -1801,15 +1795,11 @@ var StatsManager = /*#__PURE__*/ function() {
1801
1795
  ,
1802
1796
  5
1803
1797
  ]);
1804
- disableEmit = extraOptions.disableEmit;
1805
1798
  existedStats = compilation.getAsset(_this.fileName);
1806
- if (existedStats && !isDev()) {
1799
+ if (existedStats) {
1807
1800
  return [
1808
1801
  2,
1809
- {
1810
- stats: JSON.parse(existedStats.source.source().toString()),
1811
- filename: _this.fileName
1812
- }
1802
+ JSON.parse(existedStats.source.source().toString())
1813
1803
  ];
1814
1804
  }
1815
1805
  _this__options = _this._options, tmp = _this__options.manifest, manifestOptions = tmp === void 0 ? {} : tmp;
@@ -1838,15 +1828,10 @@ var StatsManager = /*#__PURE__*/ function() {
1838
1828
  stats = ret || stats;
1839
1829
  _state.label = 3;
1840
1830
  case 3:
1841
- if (!disableEmit) {
1842
- compilation.emitAsset(_this.fileName, new compiler.webpack.sources.RawSource(JSON.stringify(stats, null, 2)));
1843
- }
1831
+ compilation.emitAsset(_this.fileName, new compiler.webpack.sources.RawSource(JSON.stringify(stats, null, 2)));
1844
1832
  return [
1845
1833
  2,
1846
- {
1847
- stats: stats,
1848
- filename: _this.fileName
1849
- }
1834
+ stats
1850
1835
  ];
1851
1836
  case 4:
1852
1837
  err = _state.sent();
@@ -2055,13 +2040,9 @@ var StatsPlugin = /*#__PURE__*/ function() {
2055
2040
  _define_property(this, "_manifestManager", new ManifestManager());
2056
2041
  _define_property(this, "_enable", true);
2057
2042
  _define_property(this, "_bundler", 'webpack');
2058
- _define_property(this, "statsInfo", void 0);
2059
- _define_property(this, "manifestInfo", void 0);
2060
- _define_property(this, "disableEmit", void 0);
2061
2043
  try {
2062
2044
  this._options = options;
2063
2045
  this._bundler = bundler;
2064
- this.disableEmit = Boolean(process.env['MF_DISABLE_EMIT_STATS']);
2065
2046
  this._statsManager.init(this._options, {
2066
2047
  pluginVersion: pluginVersion,
2067
2048
  bundler: bundler
@@ -2094,38 +2075,30 @@ var StatsPlugin = /*#__PURE__*/ function() {
2094
2075
  // @ts-ignore use runtime variable in case peer dep not installed
2095
2076
  stage: compilation.constructor.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER
2096
2077
  }, /*#__PURE__*/ _async_to_generator(function() {
2078
+ var stats;
2097
2079
  return _ts_generator(this, function(_state) {
2098
2080
  switch(_state.label){
2099
2081
  case 0:
2100
2082
  if (!(_this1._options.manifest !== false)) return [
2101
2083
  3,
2102
- 3
2084
+ 2
2103
2085
  ];
2104
2086
  return [
2105
2087
  4,
2106
- _this1._statsManager.generateStats(compiler, compilation, {
2107
- disableEmit: _this1.disableEmit
2108
- })
2088
+ _this1._statsManager.generateStats(compiler, compilation)
2109
2089
  ];
2110
2090
  case 1:
2111
- _this1.statsInfo = _state.sent();
2112
- return [
2113
- 4,
2114
- _this1._manifestManager.generateManifest({
2115
- compilation: compilation,
2116
- stats: _this1.statsInfo.stats,
2117
- publicPath: _this1._statsManager.getPublicPath(compiler),
2118
- compiler: compiler,
2119
- bundler: _this1._bundler,
2120
- additionalData: _type_of(_this1._options.manifest) === 'object' ? _this1._options.manifest.additionalData : undefined
2121
- }, {
2122
- disableEmit: _this1.disableEmit
2123
- })
2124
- ];
2091
+ stats = _state.sent();
2092
+ _this1._manifestManager.generateManifest({
2093
+ compilation: compilation,
2094
+ stats: stats,
2095
+ publicPath: _this1._statsManager.getPublicPath(compiler),
2096
+ compiler: compiler,
2097
+ bundler: _this1._bundler,
2098
+ additionalData: _type_of(_this1._options.manifest) === 'object' ? _this1._options.manifest.additionalData : undefined
2099
+ });
2100
+ _state.label = 2;
2125
2101
  case 2:
2126
- _this1.manifestInfo = _state.sent();
2127
- _state.label = 3;
2128
- case 3:
2129
2102
  return [
2130
2103
  2
2131
2104
  ];
@@ -2134,15 +2107,6 @@ var StatsPlugin = /*#__PURE__*/ function() {
2134
2107
  }));
2135
2108
  });
2136
2109
  }
2137
- },
2138
- {
2139
- key: "resourceInfo",
2140
- get: function get() {
2141
- return {
2142
- stats: this.statsInfo,
2143
- manifest: this.manifestInfo
2144
- };
2145
- }
2146
2110
  }
2147
2111
  ]);
2148
2112
  return StatsPlugin;
package/dist/index.esm.js CHANGED
@@ -645,52 +645,53 @@ var ManifestManager = /*#__PURE__*/ function() {
645
645
  {
646
646
  key: "generateManifest",
647
647
  value: function generateManifest(options) {
648
- var extraOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
649
648
  var _this = this;
650
649
  return _async_to_generator$2(function() {
651
- var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest, 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:
655
654
  compilation = options.compilation, publicPath = options.publicPath, stats = options.stats, compiler = options.compiler, bundler = options.bundler, additionalData = options.additionalData;
656
- disableEmit = extraOptions.disableEmit;
657
655
  manifest = _object_spread$2({}, stats);
658
- manifest.exposes = stats.exposes.reduce(function(sum, cur) {
656
+ manifest.exposes = Object.keys(stats.exposes).reduce(function(sum, cur) {
657
+ var statsExpose = manifest.exposes[cur];
659
658
  var expose = {
660
- id: cur.id,
661
- name: cur.name,
662
- assets: cur.assets,
663
- path: cur.path
659
+ id: statsExpose.id,
660
+ name: statsExpose.name,
661
+ assets: statsExpose.assets,
662
+ path: statsExpose.path
664
663
  };
665
664
  sum.push(expose);
666
665
  return sum;
667
666
  }, []);
668
- manifest.shared = stats.shared.reduce(function(sum, cur) {
667
+ manifest.shared = Object.keys(stats.shared).reduce(function(sum, cur) {
668
+ var statsShared = manifest.shared[cur];
669
669
  var shared = {
670
- id: cur.id,
671
- name: cur.name,
672
- version: cur.version,
673
- singleton: cur.singleton,
674
- requiredVersion: cur.requiredVersion,
675
- hash: cur.hash,
676
- assets: cur.assets
670
+ id: statsShared.id,
671
+ name: statsShared.name,
672
+ version: statsShared.version,
673
+ singleton: statsShared.singleton,
674
+ requiredVersion: statsShared.requiredVersion,
675
+ hash: statsShared.hash,
676
+ assets: statsShared.assets
677
677
  };
678
678
  sum.push(shared);
679
679
  return sum;
680
680
  }, []);
681
- manifest.remotes = stats.remotes.reduce(function(sum, cur) {
681
+ manifest.remotes = Object.keys(stats.remotes).reduce(function(sum, cur) {
682
+ var statsRemote = manifest.remotes[cur];
682
683
  // @ts-ignore version/entry will be added as follow
683
684
  var remote = {
684
- federationContainerName: cur.federationContainerName,
685
- moduleName: cur.moduleName,
686
- alias: cur.alias
685
+ federationContainerName: statsRemote.federationContainerName,
686
+ moduleName: statsRemote.moduleName,
687
+ alias: statsRemote.alias
687
688
  };
688
- if ('entry' in cur) {
689
+ if ('entry' in statsRemote) {
689
690
  // @ts-ignore
690
- remote.entry = cur.entry;
691
- } else if ('version' in cur) {
691
+ remote.entry = statsRemote.entry;
692
+ } else if ('version' in statsRemote) {
692
693
  // @ts-ignore
693
- remote.entry = cur.version;
694
+ remote.entry = statsRemote.version;
694
695
  }
695
696
  sum.push(remote);
696
697
  return sum;
@@ -717,18 +718,12 @@ var ManifestManager = /*#__PURE__*/ function() {
717
718
  _this._manifest = ret || _this._manifest;
718
719
  _state.label = 2;
719
720
  case 2:
720
- if (!disableEmit) {
721
- compilation.emitAsset(manifestFileName, new compiler.webpack.sources.RawSource(JSON.stringify(_this._manifest, null, 2)));
722
- }
721
+ compilation.emitAsset(manifestFileName, new compiler.webpack.sources.RawSource(JSON.stringify(_this._manifest, null, 2)));
723
722
  if (isDev()) {
724
723
  console.log(chalk(_templateObject$1(), PLUGIN_IDENTIFIER, publicPath === 'auto' ? '{auto}/' : publicPath, manifestFileName));
725
724
  }
726
725
  return [
727
- 2,
728
- {
729
- manifest: _this._manifest,
730
- filename: manifestFileName
731
- }
726
+ 2
732
727
  ];
733
728
  }
734
729
  });
@@ -1778,11 +1773,10 @@ var StatsManager = /*#__PURE__*/ function() {
1778
1773
  },
1779
1774
  {
1780
1775
  key: "generateStats",
1781
- value: function generateStats(compiler, compilation) {
1782
- var extraOptions = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
1776
+ value: function generateStats(compiler, compilation, extraOptions) {
1783
1777
  var _this = this;
1784
1778
  return _async_to_generator$1(function() {
1785
- var disableEmit, existedStats, _this__options, tmp, manifestOptions, stats, ret, err;
1779
+ var existedStats, _this__options, tmp, manifestOptions, stats, ret, err;
1786
1780
  return _ts_generator$1(this, function(_state) {
1787
1781
  switch(_state.label){
1788
1782
  case 0:
@@ -1792,15 +1786,11 @@ var StatsManager = /*#__PURE__*/ function() {
1792
1786
  ,
1793
1787
  5
1794
1788
  ]);
1795
- disableEmit = extraOptions.disableEmit;
1796
1789
  existedStats = compilation.getAsset(_this.fileName);
1797
- if (existedStats && !isDev()) {
1790
+ if (existedStats) {
1798
1791
  return [
1799
1792
  2,
1800
- {
1801
- stats: JSON.parse(existedStats.source.source().toString()),
1802
- filename: _this.fileName
1803
- }
1793
+ JSON.parse(existedStats.source.source().toString())
1804
1794
  ];
1805
1795
  }
1806
1796
  _this__options = _this._options, tmp = _this__options.manifest, manifestOptions = tmp === void 0 ? {} : tmp;
@@ -1829,15 +1819,10 @@ var StatsManager = /*#__PURE__*/ function() {
1829
1819
  stats = ret || stats;
1830
1820
  _state.label = 3;
1831
1821
  case 3:
1832
- if (!disableEmit) {
1833
- compilation.emitAsset(_this.fileName, new compiler.webpack.sources.RawSource(JSON.stringify(stats, null, 2)));
1834
- }
1822
+ compilation.emitAsset(_this.fileName, new compiler.webpack.sources.RawSource(JSON.stringify(stats, null, 2)));
1835
1823
  return [
1836
1824
  2,
1837
- {
1838
- stats: stats,
1839
- filename: _this.fileName
1840
- }
1825
+ stats
1841
1826
  ];
1842
1827
  case 4:
1843
1828
  err = _state.sent();
@@ -2046,13 +2031,9 @@ var StatsPlugin = /*#__PURE__*/ function() {
2046
2031
  _define_property(this, "_manifestManager", new ManifestManager());
2047
2032
  _define_property(this, "_enable", true);
2048
2033
  _define_property(this, "_bundler", 'webpack');
2049
- _define_property(this, "statsInfo", void 0);
2050
- _define_property(this, "manifestInfo", void 0);
2051
- _define_property(this, "disableEmit", void 0);
2052
2034
  try {
2053
2035
  this._options = options;
2054
2036
  this._bundler = bundler;
2055
- this.disableEmit = Boolean(process.env['MF_DISABLE_EMIT_STATS']);
2056
2037
  this._statsManager.init(this._options, {
2057
2038
  pluginVersion: pluginVersion,
2058
2039
  bundler: bundler
@@ -2085,38 +2066,30 @@ var StatsPlugin = /*#__PURE__*/ function() {
2085
2066
  // @ts-ignore use runtime variable in case peer dep not installed
2086
2067
  stage: compilation.constructor.PROCESS_ASSETS_STAGE_OPTIMIZE_TRANSFER
2087
2068
  }, /*#__PURE__*/ _async_to_generator(function() {
2069
+ var stats;
2088
2070
  return _ts_generator(this, function(_state) {
2089
2071
  switch(_state.label){
2090
2072
  case 0:
2091
2073
  if (!(_this1._options.manifest !== false)) return [
2092
2074
  3,
2093
- 3
2075
+ 2
2094
2076
  ];
2095
2077
  return [
2096
2078
  4,
2097
- _this1._statsManager.generateStats(compiler, compilation, {
2098
- disableEmit: _this1.disableEmit
2099
- })
2079
+ _this1._statsManager.generateStats(compiler, compilation)
2100
2080
  ];
2101
2081
  case 1:
2102
- _this1.statsInfo = _state.sent();
2103
- return [
2104
- 4,
2105
- _this1._manifestManager.generateManifest({
2106
- compilation: compilation,
2107
- stats: _this1.statsInfo.stats,
2108
- publicPath: _this1._statsManager.getPublicPath(compiler),
2109
- compiler: compiler,
2110
- bundler: _this1._bundler,
2111
- additionalData: _type_of(_this1._options.manifest) === 'object' ? _this1._options.manifest.additionalData : undefined
2112
- }, {
2113
- disableEmit: _this1.disableEmit
2114
- })
2115
- ];
2082
+ stats = _state.sent();
2083
+ _this1._manifestManager.generateManifest({
2084
+ compilation: compilation,
2085
+ stats: stats,
2086
+ publicPath: _this1._statsManager.getPublicPath(compiler),
2087
+ compiler: compiler,
2088
+ bundler: _this1._bundler,
2089
+ additionalData: _type_of(_this1._options.manifest) === 'object' ? _this1._options.manifest.additionalData : undefined
2090
+ });
2091
+ _state.label = 2;
2116
2092
  case 2:
2117
- _this1.manifestInfo = _state.sent();
2118
- _state.label = 3;
2119
- case 3:
2120
2093
  return [
2121
2094
  2
2122
2095
  ];
@@ -2125,15 +2098,6 @@ var StatsPlugin = /*#__PURE__*/ function() {
2125
2098
  }));
2126
2099
  });
2127
2100
  }
2128
- },
2129
- {
2130
- key: "resourceInfo",
2131
- get: function get() {
2132
- return {
2133
- stats: this.statsInfo,
2134
- manifest: this.manifestInfo
2135
- };
2136
- }
2137
2101
  }
2138
2102
  ]);
2139
2103
  return StatsPlugin;
@@ -1,6 +1,5 @@
1
1
  import { Stats, Manifest, moduleFederationPlugin } from '@module-federation/sdk';
2
2
  import type { Compilation, Compiler } from 'webpack';
3
- import { ManifestInfo } from './types';
4
3
  interface GenerateManifestOptions {
5
4
  compilation: Compilation;
6
5
  stats: Stats;
@@ -15,8 +14,6 @@ declare class ManifestManager {
15
14
  get manifest(): Manifest | undefined;
16
15
  init(options: moduleFederationPlugin.ModuleFederationPluginOptions): void;
17
16
  get fileName(): string;
18
- generateManifest(options: GenerateManifestOptions, extraOptions?: {
19
- disableEmit?: boolean;
20
- }): Promise<ManifestInfo>;
17
+ generateManifest(options: GenerateManifestOptions): Promise<void>;
21
18
  }
22
19
  export { ManifestManager };
@@ -1,6 +1,5 @@
1
- import { StatsBuildInfo, moduleFederationPlugin } from '@module-federation/sdk';
1
+ import { StatsBuildInfo, Stats, moduleFederationPlugin } from '@module-federation/sdk';
2
2
  import { Compilation, Compiler } from 'webpack';
3
- import { StatsInfo } from './types';
4
3
  declare class StatsManager {
5
4
  private _options;
6
5
  private _publicPath?;
@@ -22,9 +21,7 @@ declare class StatsManager {
22
21
  pluginVersion: string;
23
22
  bundler: 'webpack' | 'rspack';
24
23
  }): void;
25
- generateStats(compiler: Compiler, compilation: Compilation, extraOptions?: {
26
- disableEmit?: boolean;
27
- }): Promise<StatsInfo>;
24
+ generateStats(compiler: Compiler, compilation: Compilation, extraOptions?: {}): Promise<Stats>;
28
25
  validate(compiler: Compiler): boolean;
29
26
  }
30
27
  export { StatsManager };
@@ -1,6 +1,5 @@
1
1
  import { Compiler, WebpackPluginInstance } from 'webpack';
2
2
  import { moduleFederationPlugin } from '@module-federation/sdk';
3
- import { StatsInfo, ManifestInfo, ResourceInfo } from './types';
4
3
  export declare class StatsPlugin implements WebpackPluginInstance {
5
4
  readonly name = "StatsPlugin";
6
5
  private _options;
@@ -8,13 +7,9 @@ export declare class StatsPlugin implements WebpackPluginInstance {
8
7
  private _manifestManager;
9
8
  private _enable;
10
9
  private _bundler;
11
- statsInfo?: StatsInfo;
12
- manifestInfo?: ManifestInfo;
13
- disableEmit?: boolean;
14
10
  constructor(options: moduleFederationPlugin.ModuleFederationPluginOptions, { pluginVersion, bundler, }: {
15
11
  pluginVersion: string;
16
12
  bundler: 'webpack' | 'rspack';
17
13
  });
18
14
  apply(compiler: Compiler): void;
19
- get resourceInfo(): Partial<ResourceInfo>;
20
15
  }
@@ -1,4 +1,3 @@
1
1
  export { StatsPlugin } from './StatsPlugin';
2
2
  export { ManifestManager } from './ManifestManager';
3
3
  export { StatsManager } from './StatsManager';
4
- export * from './types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/manifest",
3
- "version": "0.0.0-next-20240708090519",
3
+ "version": "0.0.0-next-20240709063914",
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-20240708090519",
28
- "@module-federation/dts-plugin": "0.0.0-next-20240708090519",
29
- "@module-federation/managers": "0.0.0-next-20240708090519"
27
+ "@module-federation/sdk": "0.0.0-next-20240709063914",
28
+ "@module-federation/dts-plugin": "0.0.0-next-20240709063914",
29
+ "@module-federation/managers": "0.0.0-next-20240709063914"
30
30
  },
31
31
  "exports": {
32
32
  ".": {
@@ -1,13 +0,0 @@
1
- import { Manifest, Stats } from '@module-federation/sdk';
2
- export type StatsInfo = {
3
- stats: Stats;
4
- filename: string;
5
- };
6
- export type ManifestInfo = {
7
- manifest: Manifest;
8
- filename: string;
9
- };
10
- export type ResourceInfo = {
11
- stats: StatsInfo;
12
- manifest: ManifestInfo;
13
- };