@module-federation/modern-js 0.0.0-next-20250523141144 → 0.0.0-next-20250526025159
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.
|
@@ -124,7 +124,7 @@ const middleware = async (ctx, next) => {
|
|
|
124
124
|
entryGlobalName: remoteInfo.globalName
|
|
125
125
|
}
|
|
126
126
|
]);
|
|
127
|
-
} else {
|
|
127
|
+
} else if (!("entry" in remote) || !remote.entry.includes(import_sdk.MANIFEST_EXT)) {
|
|
128
128
|
const { hostGlobalSnapshot, remoteSnapshot } = hostInstance2.snapshotHandler.getGlobalRemoteInfo(remoteInfo);
|
|
129
129
|
import_logger.default.debug("find hostGlobalSnapshot: ", JSON.stringify(hostGlobalSnapshot));
|
|
130
130
|
import_logger.default.debug("find remoteSnapshot: ", JSON.stringify(remoteSnapshot));
|
|
@@ -6,7 +6,7 @@ import { DATA_FETCH_QUERY, MF_DATA_FETCH_STATUS } from "../../constant";
|
|
|
6
6
|
import logger from "../../logger";
|
|
7
7
|
import { getDataFetchMap } from "../../utils";
|
|
8
8
|
import { fetchData, initDataFetchMap, loadDataFetchModule } from "../../utils/dataFetch";
|
|
9
|
-
import { SEPARATOR } from "@module-federation/sdk";
|
|
9
|
+
import { SEPARATOR, MANIFEST_EXT } from "@module-federation/sdk";
|
|
10
10
|
function wrapSetTimeout(targetPromise) {
|
|
11
11
|
var delay = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2e4, id = arguments.length > 2 ? arguments[2] : void 0;
|
|
12
12
|
if (targetPromise && typeof targetPromise.then === "function") {
|
|
@@ -127,7 +127,7 @@ var middleware = function() {
|
|
|
127
127
|
entryGlobalName: remoteInfo.globalName
|
|
128
128
|
}
|
|
129
129
|
]);
|
|
130
|
-
} else {
|
|
130
|
+
} else if (!("entry" in remote) || !remote.entry.includes(MANIFEST_EXT)) {
|
|
131
131
|
_hostInstance_snapshotHandler_getGlobalRemoteInfo = hostInstance.snapshotHandler.getGlobalRemoteInfo(remoteInfo), hostGlobalSnapshot = _hostInstance_snapshotHandler_getGlobalRemoteInfo.hostGlobalSnapshot, remoteSnapshot = _hostInstance_snapshotHandler_getGlobalRemoteInfo.remoteSnapshot;
|
|
132
132
|
logger.debug("find hostGlobalSnapshot: ", JSON.stringify(hostGlobalSnapshot));
|
|
133
133
|
logger.debug("find remoteSnapshot: ", JSON.stringify(remoteSnapshot));
|
|
@@ -2,7 +2,7 @@ import { DATA_FETCH_QUERY, MF_DATA_FETCH_STATUS } from "../../constant";
|
|
|
2
2
|
import logger from "../../logger";
|
|
3
3
|
import { getDataFetchMap } from "../../utils";
|
|
4
4
|
import { fetchData, initDataFetchMap, loadDataFetchModule } from "../../utils/dataFetch";
|
|
5
|
-
import { SEPARATOR } from "@module-federation/sdk";
|
|
5
|
+
import { SEPARATOR, MANIFEST_EXT } from "@module-federation/sdk";
|
|
6
6
|
function wrapSetTimeout(targetPromise, delay = 2e4, id) {
|
|
7
7
|
if (targetPromise && typeof targetPromise.then === "function") {
|
|
8
8
|
return new Promise((resolve, reject) => {
|
|
@@ -91,7 +91,7 @@ const middleware = async (ctx, next) => {
|
|
|
91
91
|
entryGlobalName: remoteInfo.globalName
|
|
92
92
|
}
|
|
93
93
|
]);
|
|
94
|
-
} else {
|
|
94
|
+
} else if (!("entry" in remote) || !remote.entry.includes(MANIFEST_EXT)) {
|
|
95
95
|
const { hostGlobalSnapshot, remoteSnapshot } = hostInstance2.snapshotHandler.getGlobalRemoteInfo(remoteInfo);
|
|
96
96
|
logger.debug("find hostGlobalSnapshot: ", JSON.stringify(hostGlobalSnapshot));
|
|
97
97
|
logger.debug("find remoteSnapshot: ", JSON.stringify(remoteSnapshot));
|
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-20250526025159",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist/",
|
|
6
6
|
"types.d.ts",
|
|
@@ -111,12 +111,12 @@
|
|
|
111
111
|
"@swc/helpers": "0.5.13",
|
|
112
112
|
"node-fetch": "~3.3.0",
|
|
113
113
|
"react-error-boundary": "4.1.2",
|
|
114
|
-
"@module-federation/rsbuild-plugin": "0.0.0-next-
|
|
115
|
-
"@module-federation/enhanced": "0.0.0-next-
|
|
116
|
-
"@module-federation/runtime": "0.0.0-next-
|
|
117
|
-
"@module-federation/node": "0.0.0-next-
|
|
118
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
119
|
-
"@module-federation/cli": "0.0.0-next-
|
|
114
|
+
"@module-federation/rsbuild-plugin": "0.0.0-next-20250526025159",
|
|
115
|
+
"@module-federation/enhanced": "0.0.0-next-20250526025159",
|
|
116
|
+
"@module-federation/runtime": "0.0.0-next-20250526025159",
|
|
117
|
+
"@module-federation/node": "0.0.0-next-20250526025159",
|
|
118
|
+
"@module-federation/sdk": "0.0.0-next-20250526025159",
|
|
119
|
+
"@module-federation/cli": "0.0.0-next-20250526025159"
|
|
120
120
|
},
|
|
121
121
|
"devDependencies": {
|
|
122
122
|
"@rsbuild/core": "1.2.8",
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@modern-js/runtime": "2.67.5",
|
|
127
127
|
"@modern-js/tsconfig": "2.67.5",
|
|
128
128
|
"@modern-js/server-runtime": "2.67.5",
|
|
129
|
-
"@module-federation/manifest": "0.0.0-next-
|
|
129
|
+
"@module-federation/manifest": "0.0.0-next-20250526025159"
|
|
130
130
|
},
|
|
131
131
|
"peerDependencies": {
|
|
132
132
|
"react": ">=17",
|