@module-federation/rspack 0.1.8 → 0.1.10
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 +4 -4
- package/dist/index.esm.js +4 -4
- package/dist/package.json +1 -1
- package/package.json +6 -6
package/dist/index.cjs.js
CHANGED
|
@@ -166,7 +166,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
166
166
|
});
|
|
167
167
|
if (!disableManifest) {
|
|
168
168
|
new manifest.StatsPlugin(options, {
|
|
169
|
-
pluginVersion: "0.1.
|
|
169
|
+
pluginVersion: "0.1.10",
|
|
170
170
|
bundler: "rspack"
|
|
171
171
|
}).apply(compiler);
|
|
172
172
|
}
|
|
@@ -194,7 +194,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
194
194
|
if (typeof cacheGroup.chunks === "function") {
|
|
195
195
|
var prevChunks = cacheGroup.chunks;
|
|
196
196
|
cacheGroup.chunks = function(chunk) {
|
|
197
|
-
if (chunk.name && chunk.name === name) {
|
|
197
|
+
if (chunk.name && (chunk.name === name || chunk.name === name + "_partial")) {
|
|
198
198
|
return false;
|
|
199
199
|
}
|
|
200
200
|
return prevChunks(chunk);
|
|
@@ -202,12 +202,12 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
202
202
|
break;
|
|
203
203
|
}
|
|
204
204
|
if (cacheGroup.chunks === "all") {
|
|
205
|
-
cacheGroup.chunks = new RegExp("^(?!.*".concat(name, ").*$"), "g");
|
|
205
|
+
cacheGroup.chunks = new RegExp("^(?!.*(".concat(name, "|").concat(name, "_partial)).*$"), "g");
|
|
206
206
|
break;
|
|
207
207
|
}
|
|
208
208
|
if (cacheGroup.chunks === "initial") {
|
|
209
209
|
cacheGroup.chunks = function(chunk) {
|
|
210
|
-
if (chunk.name && chunk.name === name) {
|
|
210
|
+
if (chunk.name && (chunk.name === name || chunk.name === name + "_partial")) {
|
|
211
211
|
return false;
|
|
212
212
|
}
|
|
213
213
|
return chunk.isOnlyInitial();
|
package/dist/index.esm.js
CHANGED
|
@@ -162,7 +162,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
162
162
|
});
|
|
163
163
|
if (!disableManifest) {
|
|
164
164
|
new StatsPlugin(options, {
|
|
165
|
-
pluginVersion: "0.1.
|
|
165
|
+
pluginVersion: "0.1.10",
|
|
166
166
|
bundler: "rspack"
|
|
167
167
|
}).apply(compiler);
|
|
168
168
|
}
|
|
@@ -190,7 +190,7 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
190
190
|
if (typeof cacheGroup.chunks === "function") {
|
|
191
191
|
var prevChunks = cacheGroup.chunks;
|
|
192
192
|
cacheGroup.chunks = function(chunk) {
|
|
193
|
-
if (chunk.name && chunk.name === name) {
|
|
193
|
+
if (chunk.name && (chunk.name === name || chunk.name === name + "_partial")) {
|
|
194
194
|
return false;
|
|
195
195
|
}
|
|
196
196
|
return prevChunks(chunk);
|
|
@@ -198,12 +198,12 @@ var ModuleFederationPlugin = /*#__PURE__*/ function() {
|
|
|
198
198
|
break;
|
|
199
199
|
}
|
|
200
200
|
if (cacheGroup.chunks === "all") {
|
|
201
|
-
cacheGroup.chunks = new RegExp("^(?!.*".concat(name, ").*$"), "g");
|
|
201
|
+
cacheGroup.chunks = new RegExp("^(?!.*(".concat(name, "|").concat(name, "_partial)).*$"), "g");
|
|
202
202
|
break;
|
|
203
203
|
}
|
|
204
204
|
if (cacheGroup.chunks === "initial") {
|
|
205
205
|
cacheGroup.chunks = function(chunk) {
|
|
206
|
-
if (chunk.name && chunk.name === name) {
|
|
206
|
+
if (chunk.name && (chunk.name === name || chunk.name === name + "_partial")) {
|
|
207
207
|
return false;
|
|
208
208
|
}
|
|
209
209
|
return chunk.isOnlyInitial();
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/rspack",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
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.1.
|
|
23
|
-
"@module-federation/runtime-tools": "0.1.
|
|
24
|
-
"@module-federation/manifest": "0.1.
|
|
25
|
-
"@module-federation/managers": "0.1.
|
|
26
|
-
"@module-federation/dts-plugin": "0.1.
|
|
22
|
+
"@module-federation/sdk": "0.1.10",
|
|
23
|
+
"@module-federation/runtime-tools": "0.1.10",
|
|
24
|
+
"@module-federation/manifest": "0.1.10",
|
|
25
|
+
"@module-federation/managers": "0.1.10",
|
|
26
|
+
"@module-federation/dts-plugin": "0.1.10"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@rspack/core": "0.5.0"
|