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