@module-federation/rspack 0.13.0 → 0.13.1
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/plugin.cjs.js +5 -2
- package/dist/plugin.esm.mjs +5 -2
- package/package.json +8 -8
package/dist/plugin.cjs.js
CHANGED
|
@@ -113,7 +113,10 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
113
113
|
var _this = this;
|
|
114
114
|
var count = 0;
|
|
115
115
|
compiler.options.plugins.forEach(function(p) {
|
|
116
|
-
if (p
|
|
116
|
+
if ((typeof p === "undefined" ? "undefined" : _type_of(p)) !== 'object' || !p) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
if (p['name'] === _this.name) {
|
|
117
120
|
count++;
|
|
118
121
|
if (count > 1) {
|
|
119
122
|
throw new Error("Detect duplicate register ".concat(_this.name, ",please ensure ").concat(_this.name, " is singleton!"));
|
|
@@ -183,7 +186,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
183
186
|
});
|
|
184
187
|
if (!disableManifest) {
|
|
185
188
|
this._statsPlugin = new manifest.StatsPlugin(options, {
|
|
186
|
-
pluginVersion: "0.13.
|
|
189
|
+
pluginVersion: "0.13.1",
|
|
187
190
|
bundler: 'rspack'
|
|
188
191
|
});
|
|
189
192
|
// @ts-ignore
|
package/dist/plugin.esm.mjs
CHANGED
|
@@ -111,7 +111,10 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
111
111
|
var _this = this;
|
|
112
112
|
var count = 0;
|
|
113
113
|
compiler.options.plugins.forEach(function(p) {
|
|
114
|
-
if (p
|
|
114
|
+
if ((typeof p === "undefined" ? "undefined" : _type_of(p)) !== 'object' || !p) {
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
if (p['name'] === _this.name) {
|
|
115
118
|
count++;
|
|
116
119
|
if (count > 1) {
|
|
117
120
|
throw new Error("Detect duplicate register ".concat(_this.name, ",please ensure ").concat(_this.name, " is singleton!"));
|
|
@@ -181,7 +184,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
181
184
|
});
|
|
182
185
|
if (!disableManifest) {
|
|
183
186
|
this._statsPlugin = new StatsPlugin(options, {
|
|
184
|
-
pluginVersion: "0.13.
|
|
187
|
+
pluginVersion: "0.13.1",
|
|
185
188
|
bundler: 'rspack'
|
|
186
189
|
});
|
|
187
190
|
// @ts-ignore
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rspack",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Module Federation",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"types": "./dist/index.cjs.d.ts",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"btoa": "1.2.1",
|
|
28
|
-
"@module-federation/bridge-react-webpack-plugin": "0.13.
|
|
29
|
-
"@module-federation/dts-plugin": "0.13.
|
|
30
|
-
"@module-federation/managers": "0.13.
|
|
31
|
-
"@module-federation/manifest": "0.13.
|
|
32
|
-
"@module-federation/runtime-tools": "0.13.
|
|
33
|
-
"@module-federation/inject-external-runtime-core-plugin": "0.13.
|
|
34
|
-
"@module-federation/sdk": "0.13.
|
|
28
|
+
"@module-federation/bridge-react-webpack-plugin": "0.13.1",
|
|
29
|
+
"@module-federation/dts-plugin": "0.13.1",
|
|
30
|
+
"@module-federation/managers": "0.13.1",
|
|
31
|
+
"@module-federation/manifest": "0.13.1",
|
|
32
|
+
"@module-federation/runtime-tools": "0.13.1",
|
|
33
|
+
"@module-federation/inject-external-runtime-core-plugin": "0.13.1",
|
|
34
|
+
"@module-federation/sdk": "0.13.1"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@rspack/core": "^1.0.2"
|