@module-federation/modern-js 0.0.0-next-20240621074837 → 0.0.0-next-20240621075348
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.
|
@@ -66,8 +66,11 @@ const resolveEntryIpv4Plugin = () => ({
|
|
|
66
66
|
if ("getPublicPath" in remoteSnapshot) {
|
|
67
67
|
replaceObjectLocalhost("getPublicPath", remoteSnapshot);
|
|
68
68
|
}
|
|
69
|
-
if (
|
|
70
|
-
|
|
69
|
+
if (remoteSnapshot.remotesInfo) {
|
|
70
|
+
Object.keys(remoteSnapshot.remotesInfo).forEach((key) => {
|
|
71
|
+
const remoteInfo = remoteSnapshot.remotesInfo[key];
|
|
72
|
+
replaceObjectLocalhost("matchedVersion", remoteInfo);
|
|
73
|
+
});
|
|
71
74
|
}
|
|
72
75
|
return args;
|
|
73
76
|
}
|
|
@@ -54,8 +54,11 @@ var resolveEntryIpv4Plugin = function() {
|
|
|
54
54
|
if ("getPublicPath" in remoteSnapshot) {
|
|
55
55
|
replaceObjectLocalhost("getPublicPath", remoteSnapshot);
|
|
56
56
|
}
|
|
57
|
-
if (
|
|
58
|
-
|
|
57
|
+
if (remoteSnapshot.remotesInfo) {
|
|
58
|
+
Object.keys(remoteSnapshot.remotesInfo).forEach(function(key) {
|
|
59
|
+
var remoteInfo = remoteSnapshot.remotesInfo[key];
|
|
60
|
+
replaceObjectLocalhost("matchedVersion", remoteInfo);
|
|
61
|
+
});
|
|
59
62
|
}
|
|
60
63
|
return args;
|
|
61
64
|
}
|
|
@@ -43,8 +43,11 @@ const resolveEntryIpv4Plugin = () => ({
|
|
|
43
43
|
if ("getPublicPath" in remoteSnapshot) {
|
|
44
44
|
replaceObjectLocalhost("getPublicPath", remoteSnapshot);
|
|
45
45
|
}
|
|
46
|
-
if (
|
|
47
|
-
|
|
46
|
+
if (remoteSnapshot.remotesInfo) {
|
|
47
|
+
Object.keys(remoteSnapshot.remotesInfo).forEach((key) => {
|
|
48
|
+
const remoteInfo = remoteSnapshot.remotesInfo[key];
|
|
49
|
+
replaceObjectLocalhost("matchedVersion", remoteInfo);
|
|
50
|
+
});
|
|
48
51
|
}
|
|
49
52
|
return args;
|
|
50
53
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/modern-js",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240621075348",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"@modern-js/utils": "^2.49.2",
|
|
47
47
|
"@modern-js/node-bundle-require": "^2.49.2",
|
|
48
48
|
"node-fetch": "~3.3.0",
|
|
49
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
50
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
51
|
-
"@module-federation/node": "0.0.0-next-
|
|
49
|
+
"@module-federation/sdk": "0.0.0-next-20240621075348",
|
|
50
|
+
"@module-federation/enhanced": "0.0.0-next-20240621075348",
|
|
51
|
+
"@module-federation/node": "0.0.0-next-20240621075348"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@modern-js/app-tools": "^2.49.2",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@modern-js/runtime": "^2.49.2",
|
|
57
57
|
"@modern-js/module-tools": "^2.35.0",
|
|
58
58
|
"@modern-js/tsconfig": "^2.35.0",
|
|
59
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
59
|
+
"@module-federation/manifest": "0.0.0-next-20240621075348"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"react": ">=17",
|