@module-federation/rspack 0.6.13 → 0.6.15

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
@@ -129,7 +129,11 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
129
129
  }
130
130
  this._checkSingleton(compiler);
131
131
  this._patchBundlerConfig(compiler);
132
- this._patchChunkSplit(compiler, options.name);
132
+ var containerManager = new managers.ContainerManager();
133
+ containerManager.init(options);
134
+ if (containerManager.enable) {
135
+ this._patchChunkSplit(compiler, options.name);
136
+ }
133
137
  options.implementation = options.implementation || RuntimeToolsPath;
134
138
  var disableManifest = options.manifest === false;
135
139
  var disableDts = options.dts === false;
@@ -139,8 +143,6 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
139
143
  }
140
144
  if (!disableManifest && options.exposes) {
141
145
  try {
142
- var containerManager = new managers.ContainerManager();
143
- containerManager.init(options);
144
146
  options.exposes = containerManager.containerPluginExposesOptions;
145
147
  } catch (err) {
146
148
  if (_instanceof(err, Error)) {
@@ -163,7 +165,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
163
165
  });
164
166
  if (!disableManifest) {
165
167
  this._statsPlugin = new manifest.StatsPlugin(options, {
166
- pluginVersion: "0.6.13",
168
+ pluginVersion: "0.6.15",
167
169
  bundler: 'rspack'
168
170
  });
169
171
  // @ts-ignore
package/dist/index.esm.js CHANGED
@@ -127,7 +127,11 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
127
127
  }
128
128
  this._checkSingleton(compiler);
129
129
  this._patchBundlerConfig(compiler);
130
- this._patchChunkSplit(compiler, options.name);
130
+ var containerManager = new ContainerManager();
131
+ containerManager.init(options);
132
+ if (containerManager.enable) {
133
+ this._patchChunkSplit(compiler, options.name);
134
+ }
131
135
  options.implementation = options.implementation || RuntimeToolsPath;
132
136
  var disableManifest = options.manifest === false;
133
137
  var disableDts = options.dts === false;
@@ -137,8 +141,6 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
137
141
  }
138
142
  if (!disableManifest && options.exposes) {
139
143
  try {
140
- var containerManager = new ContainerManager();
141
- containerManager.init(options);
142
144
  options.exposes = containerManager.containerPluginExposesOptions;
143
145
  } catch (err) {
144
146
  if (_instanceof(err, Error)) {
@@ -161,7 +163,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
161
163
  });
162
164
  if (!disableManifest) {
163
165
  this._statsPlugin = new StatsPlugin(options, {
164
- pluginVersion: "0.6.13",
166
+ pluginVersion: "0.6.15",
165
167
  bundler: 'rspack'
166
168
  });
167
169
  // @ts-ignore
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspack",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Module Federation",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/rspack",
3
- "version": "0.6.13",
3
+ "version": "0.6.15",
4
4
  "license": "MIT",
5
5
  "keywords": [
6
6
  "Module Federation",
@@ -19,12 +19,12 @@
19
19
  "module": "./dist/index.esm.js",
20
20
  "types": "./dist/index.cjs.d.ts",
21
21
  "dependencies": {
22
- "@module-federation/bridge-react-webpack-plugin": "0.6.13",
23
- "@module-federation/dts-plugin": "0.6.13",
24
- "@module-federation/managers": "0.6.13",
25
- "@module-federation/manifest": "0.6.13",
26
- "@module-federation/runtime-tools": "0.6.13",
27
- "@module-federation/sdk": "0.6.13"
22
+ "@module-federation/bridge-react-webpack-plugin": "0.6.15",
23
+ "@module-federation/dts-plugin": "0.6.15",
24
+ "@module-federation/managers": "0.6.15",
25
+ "@module-federation/manifest": "0.6.15",
26
+ "@module-federation/runtime-tools": "0.6.15",
27
+ "@module-federation/sdk": "0.6.15"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@rspack/core": "^1.0.2"