@module-federation/rspack 0.0.0-next-20240529015908 → 0.0.0-next-20240529032552

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
@@ -95,6 +95,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
95
95
  _class_call_check(this, ModuleFederationPlugin);
96
96
  _define_property(this, "name", 'RspackModuleFederationPlugin');
97
97
  _define_property(this, "_options", void 0);
98
+ _define_property(this, "_statsPlugin", void 0);
98
99
  this._options = options;
99
100
  }
100
101
  _create_class(ModuleFederationPlugin, [
@@ -163,10 +164,12 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
163
164
  });
164
165
  });
165
166
  if (!disableManifest) {
166
- new manifest.StatsPlugin(options, {
167
+ this._statsPlugin = new manifest.StatsPlugin(options, {
167
168
  pluginVersion: "0.1.15",
168
169
  bundler: 'rspack'
169
- }).apply(compiler);
170
+ });
171
+ // @ts-ignore
172
+ this._statsPlugin.apply(compiler);
170
173
  }
171
174
  }
172
175
  },
@@ -230,6 +233,13 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
230
233
  patchChunkSplit(cacheGroups[cacheGroupKey]);
231
234
  });
232
235
  }
236
+ },
237
+ {
238
+ key: "statsResourceInfo",
239
+ get: function get() {
240
+ var _this__statsPlugin;
241
+ return (_this__statsPlugin = this._statsPlugin) === null || _this__statsPlugin === void 0 ? void 0 : _this__statsPlugin.resourceInfo;
242
+ }
233
243
  }
234
244
  ]);
235
245
  return ModuleFederationPlugin;
package/dist/index.esm.js CHANGED
@@ -91,6 +91,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
91
91
  _class_call_check(this, ModuleFederationPlugin);
92
92
  _define_property(this, "name", 'RspackModuleFederationPlugin');
93
93
  _define_property(this, "_options", void 0);
94
+ _define_property(this, "_statsPlugin", void 0);
94
95
  this._options = options;
95
96
  }
96
97
  _create_class(ModuleFederationPlugin, [
@@ -159,10 +160,12 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
159
160
  });
160
161
  });
161
162
  if (!disableManifest) {
162
- new StatsPlugin(options, {
163
+ this._statsPlugin = new StatsPlugin(options, {
163
164
  pluginVersion: "0.1.15",
164
165
  bundler: 'rspack'
165
- }).apply(compiler);
166
+ });
167
+ // @ts-ignore
168
+ this._statsPlugin.apply(compiler);
166
169
  }
167
170
  }
168
171
  },
@@ -226,6 +229,13 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
226
229
  patchChunkSplit(cacheGroups[cacheGroupKey]);
227
230
  });
228
231
  }
232
+ },
233
+ {
234
+ key: "statsResourceInfo",
235
+ get: function get() {
236
+ var _this__statsPlugin;
237
+ return (_this__statsPlugin = this._statsPlugin) === null || _this__statsPlugin === void 0 ? void 0 : _this__statsPlugin.resourceInfo;
238
+ }
229
239
  }
230
240
  ]);
231
241
  return ModuleFederationPlugin;
@@ -3,9 +3,11 @@ import { moduleFederationPlugin } from '@module-federation/sdk';
3
3
  export declare class ModuleFederationPlugin implements RspackPluginInstance {
4
4
  readonly name = "RspackModuleFederationPlugin";
5
5
  private _options;
6
+ private _statsPlugin?;
6
7
  constructor(options: moduleFederationPlugin.ModuleFederationPluginOptions);
7
8
  private _patchBundlerConfig;
8
9
  private _checkSingleton;
9
10
  apply(compiler: Compiler): void;
10
11
  private _patchChunkSplit;
12
+ get statsResourceInfo(): Partial<import("@module-federation/manifest").ResourceInfo> | undefined;
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspack",
3
- "version": "0.0.0-next-20240529015908",
3
+ "version": "0.0.0-next-20240529032552",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Module Federation",
@@ -19,11 +19,11 @@
19
19
  "module": "./dist/index.esm.js",
20
20
  "types": "./dist/index.cjs.d.ts",
21
21
  "dependencies": {
22
- "@module-federation/sdk": "0.0.0-next-20240529015908",
23
- "@module-federation/runtime-tools": "0.0.0-next-20240529015908",
24
- "@module-federation/manifest": "0.0.0-next-20240529015908",
25
- "@module-federation/managers": "0.0.0-next-20240529015908",
26
- "@module-federation/dts-plugin": "0.0.0-next-20240529015908"
22
+ "@module-federation/sdk": "0.0.0-next-20240529032552",
23
+ "@module-federation/runtime-tools": "0.0.0-next-20240529032552",
24
+ "@module-federation/manifest": "0.0.0-next-20240529032552",
25
+ "@module-federation/managers": "0.0.0-next-20240529032552",
26
+ "@module-federation/dts-plugin": "0.0.0-next-20240529032552"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@rspack/core": "0.5.0"