@module-federation/rspack 0.0.0-next-20240528100448 → 0.0.0-next-20240528203231

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,7 +95,6 @@ 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);
99
98
  this._options = options;
100
99
  }
101
100
  _create_class(ModuleFederationPlugin, [
@@ -164,12 +163,10 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
164
163
  });
165
164
  });
166
165
  if (!disableManifest) {
167
- this._statsPlugin = new manifest.StatsPlugin(options, {
166
+ new manifest.StatsPlugin(options, {
168
167
  pluginVersion: "0.1.15",
169
168
  bundler: 'rspack'
170
- });
171
- // @ts-ignore
172
- this._statsPlugin.apply(compiler);
169
+ }).apply(compiler);
173
170
  }
174
171
  }
175
172
  },
@@ -233,13 +230,6 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
233
230
  patchChunkSplit(cacheGroups[cacheGroupKey]);
234
231
  });
235
232
  }
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
- }
243
233
  }
244
234
  ]);
245
235
  return ModuleFederationPlugin;
package/dist/index.esm.js CHANGED
@@ -91,7 +91,6 @@ 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);
95
94
  this._options = options;
96
95
  }
97
96
  _create_class(ModuleFederationPlugin, [
@@ -160,12 +159,10 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
160
159
  });
161
160
  });
162
161
  if (!disableManifest) {
163
- this._statsPlugin = new StatsPlugin(options, {
162
+ new StatsPlugin(options, {
164
163
  pluginVersion: "0.1.15",
165
164
  bundler: 'rspack'
166
- });
167
- // @ts-ignore
168
- this._statsPlugin.apply(compiler);
165
+ }).apply(compiler);
169
166
  }
170
167
  }
171
168
  },
@@ -229,13 +226,6 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
229
226
  patchChunkSplit(cacheGroups[cacheGroupKey]);
230
227
  });
231
228
  }
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
- }
239
229
  }
240
230
  ]);
241
231
  return ModuleFederationPlugin;
@@ -3,11 +3,9 @@ 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?;
7
6
  constructor(options: moduleFederationPlugin.ModuleFederationPluginOptions);
8
7
  private _patchBundlerConfig;
9
8
  private _checkSingleton;
10
9
  apply(compiler: Compiler): void;
11
10
  private _patchChunkSplit;
12
- get statsResourceInfo(): Partial<import("@module-federation/manifest").ResourceInfo> | undefined;
13
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspack",
3
- "version": "0.0.0-next-20240528100448",
3
+ "version": "0.0.0-next-20240528203231",
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-20240528100448",
23
- "@module-federation/runtime-tools": "0.0.0-next-20240528100448",
24
- "@module-federation/manifest": "0.0.0-next-20240528100448",
25
- "@module-federation/managers": "0.0.0-next-20240528100448",
26
- "@module-federation/dts-plugin": "0.0.0-next-20240528100448"
22
+ "@module-federation/sdk": "0.0.0-next-20240528203231",
23
+ "@module-federation/runtime-tools": "0.0.0-next-20240528203231",
24
+ "@module-federation/manifest": "0.0.0-next-20240528203231",
25
+ "@module-federation/managers": "0.0.0-next-20240528203231",
26
+ "@module-federation/dts-plugin": "0.0.0-next-20240528203231"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@rspack/core": "0.5.0"