@module-federation/runtime 0.0.0-next-20240117121934 → 0.0.0-next-20240119073703

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 CHANGED
@@ -927,7 +927,11 @@ class SnapshotHandler {
927
927
  if (sdk.isManifestProvider(globalRemoteSnapshot)) {
928
928
  const moduleSnapshot = await this.getManifestJson(globalRemoteSnapshot.remoteEntry, moduleInfo, {});
929
929
  // eslint-disable-next-line @typescript-eslint/no-shadow
930
- const globalSnapshotRes = share.setGlobalSnapshotInfoByModuleInfo(_extends$1({}, moduleInfo), moduleSnapshot);
930
+ const globalSnapshotRes = share.setGlobalSnapshotInfoByModuleInfo(_extends$1({}, moduleInfo, {
931
+ // The global remote may be overridden
932
+ // Therefore, set the snapshot key to the global address of the actual request
933
+ entry: globalRemoteSnapshot.remoteEntry
934
+ }), moduleSnapshot);
931
935
  return {
932
936
  remoteSnapshot: moduleSnapshot,
933
937
  globalSnapshot: globalSnapshotRes
package/dist/index.esm.js CHANGED
@@ -925,7 +925,11 @@ class SnapshotHandler {
925
925
  if (isManifestProvider(globalRemoteSnapshot)) {
926
926
  const moduleSnapshot = await this.getManifestJson(globalRemoteSnapshot.remoteEntry, moduleInfo, {});
927
927
  // eslint-disable-next-line @typescript-eslint/no-shadow
928
- const globalSnapshotRes = setGlobalSnapshotInfoByModuleInfo(_extends$1({}, moduleInfo), moduleSnapshot);
928
+ const globalSnapshotRes = setGlobalSnapshotInfoByModuleInfo(_extends$1({}, moduleInfo, {
929
+ // The global remote may be overridden
930
+ // Therefore, set the snapshot key to the global address of the actual request
931
+ entry: globalRemoteSnapshot.remoteEntry
932
+ }), moduleSnapshot);
929
933
  return {
930
934
  remoteSnapshot: moduleSnapshot,
931
935
  globalSnapshot: globalSnapshotRes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20240117121934",
3
+ "version": "0.0.0-next-20240119073703",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs",
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-20240117121934"
48
+ "@module-federation/sdk": "0.0.0-next-20240119073703"
49
49
  }
50
50
  }