@module-federation/runtime 0.0.0-next-20240516035452 → 0.0.0-next-20240516123215
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 +2 -1
- package/dist/index.esm.js +2 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -636,6 +636,7 @@ function snapshotPlugin() {
|
|
|
636
636
|
const { remote, pkgNameOrAlias, expose, origin, remoteInfo } = args;
|
|
637
637
|
if (!share.isRemoteInfoWithEntry(remote) || !share.isPureRemoteEntry(remote)) {
|
|
638
638
|
const { remoteSnapshot, globalSnapshot } = await origin.snapshotHandler.loadRemoteSnapshotInfo(remote);
|
|
639
|
+
debugger;
|
|
639
640
|
assignRemoteInfo(remoteInfo, remoteSnapshot);
|
|
640
641
|
// preloading assets
|
|
641
642
|
const preloadOptions = {
|
|
@@ -955,7 +956,7 @@ class SnapshotHandler {
|
|
|
955
956
|
// global snapshot includes manifest or module info includes manifest
|
|
956
957
|
if (globalRemoteSnapshot) {
|
|
957
958
|
if (sdk.isManifestProvider(globalRemoteSnapshot)) {
|
|
958
|
-
const remoteEntry = share.isBrowserEnv() ? globalRemoteSnapshot.remoteEntry : globalRemoteSnapshot.ssrRemoteEntry || '';
|
|
959
|
+
const remoteEntry = share.isBrowserEnv() ? globalRemoteSnapshot.remoteEntry : globalRemoteSnapshot.ssrRemoteEntry || globalRemoteSnapshot.remoteEntry || '';
|
|
959
960
|
const moduleSnapshot = await this.getManifestJson(remoteEntry, moduleInfo, {});
|
|
960
961
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
961
962
|
const globalSnapshotRes = share.setGlobalSnapshotInfoByModuleInfo(_extends$3({}, moduleInfo, {
|
package/dist/index.esm.js
CHANGED
|
@@ -634,6 +634,7 @@ function snapshotPlugin() {
|
|
|
634
634
|
const { remote, pkgNameOrAlias, expose, origin, remoteInfo } = args;
|
|
635
635
|
if (!isRemoteInfoWithEntry(remote) || !isPureRemoteEntry(remote)) {
|
|
636
636
|
const { remoteSnapshot, globalSnapshot } = await origin.snapshotHandler.loadRemoteSnapshotInfo(remote);
|
|
637
|
+
debugger;
|
|
637
638
|
assignRemoteInfo(remoteInfo, remoteSnapshot);
|
|
638
639
|
// preloading assets
|
|
639
640
|
const preloadOptions = {
|
|
@@ -953,7 +954,7 @@ class SnapshotHandler {
|
|
|
953
954
|
// global snapshot includes manifest or module info includes manifest
|
|
954
955
|
if (globalRemoteSnapshot) {
|
|
955
956
|
if (isManifestProvider(globalRemoteSnapshot)) {
|
|
956
|
-
const remoteEntry = isBrowserEnv() ? globalRemoteSnapshot.remoteEntry : globalRemoteSnapshot.ssrRemoteEntry || '';
|
|
957
|
+
const remoteEntry = isBrowserEnv() ? globalRemoteSnapshot.remoteEntry : globalRemoteSnapshot.ssrRemoteEntry || globalRemoteSnapshot.remoteEntry || '';
|
|
957
958
|
const moduleSnapshot = await this.getManifestJson(remoteEntry, moduleInfo, {});
|
|
958
959
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
959
960
|
const globalSnapshotRes = setGlobalSnapshotInfoByModuleInfo(_extends$3({}, moduleInfo, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/runtime",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240516123215",
|
|
4
4
|
"author": "zhouxiao <codingzx@gmail.com>",
|
|
5
5
|
"main": "./dist/index.cjs.js",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
48
|
+
"@module-federation/sdk": "0.0.0-next-20240516123215"
|
|
49
49
|
}
|
|
50
50
|
}
|