@module-federation/runtime-core 0.18.4 → 0.19.0

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.esm.js CHANGED
@@ -201,7 +201,7 @@ function getGlobalFederationConstructor() {
201
201
  function setGlobalFederationConstructor(FederationConstructor, isDebug = isDebugMode()) {
202
202
  if (isDebug) {
203
203
  CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
204
- CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.18.4";
204
+ CurrentGlobal.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = "0.19.0";
205
205
  }
206
206
  }
207
207
  // eslint-disable-next-line @typescript-eslint/ban-types
@@ -1440,7 +1440,6 @@ let Module = class Module {
1440
1440
  });
1441
1441
  } catch (err) {
1442
1442
  const uniqueKey = getRemoteEntryUniqueKey(this.remoteInfo);
1443
- // only when the error is RUNTIME_008 (script resource load failed) trigger loadEntryError.emit
1444
1443
  const isScriptLoadError = err instanceof Error && err.message.includes(RUNTIME_008);
1445
1444
  if (isScriptLoadError) {
1446
1445
  remoteEntryExports = await this.host.loaderHook.lifecycle.loadEntryError.emit({
@@ -1451,8 +1450,6 @@ let Module = class Module {
1451
1450
  globalLoading,
1452
1451
  uniqueKey
1453
1452
  });
1454
- } else {
1455
- throw err;
1456
1453
  }
1457
1454
  }
1458
1455
  assert(remoteEntryExports, `remoteEntryExports is undefined \n ${safeToString(this.remoteInfo)}`);
@@ -3045,7 +3042,7 @@ class ModuleFederation {
3045
3042
  // maybe will change, temporarily for internal use only
3046
3043
  initContainer: new AsyncWaterfallHook('initContainer')
3047
3044
  });
3048
- this.version = "0.18.4";
3045
+ this.version = "0.19.0";
3049
3046
  this.moduleCache = new Map();
3050
3047
  this.loaderHook = new PluginSystem({
3051
3048
  // FIXME: may not be suitable , not open to the public yet