@module-federation/webpack-bundler-runtime
Advanced tools
Comparing version 0.0.0-next-20240611070359 to 0.0.0-next-20240612203225
@@ -39,2 +39,6 @@ 'use strict'; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function _ts_generator(thisArg, body) { | ||
@@ -301,7 +305,7 @@ var f, y, t, g, _ = { | ||
__webpack_require__.g = function() { | ||
if (typeof globalThis === 'object') return globalThis; | ||
if ((typeof globalThis === "undefined" ? "undefined" : _type_of(globalThis)) === 'object') return globalThis; | ||
try { | ||
return _this || new Function('return this')(); | ||
} catch (e) { | ||
if (typeof window === 'object') return window; | ||
if ((typeof window === "undefined" ? "undefined" : _type_of(window)) === 'object') return window; | ||
} | ||
@@ -308,0 +312,0 @@ }(); |
@@ -35,2 +35,6 @@ import federation from './index.esm.js'; | ||
} | ||
function _type_of(obj) { | ||
"@swc/helpers - typeof"; | ||
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; | ||
} | ||
function _ts_generator(thisArg, body) { | ||
@@ -297,7 +301,7 @@ var f, y, t, g, _ = { | ||
__webpack_require__.g = function() { | ||
if (typeof globalThis === 'object') return globalThis; | ||
if ((typeof globalThis === "undefined" ? "undefined" : _type_of(globalThis)) === 'object') return globalThis; | ||
try { | ||
return _this || new Function('return this')(); | ||
} catch (e) { | ||
if (typeof window === 'object') return window; | ||
if ((typeof window === "undefined" ? "undefined" : _type_of(window)) === 'object') return window; | ||
} | ||
@@ -304,0 +308,0 @@ }(); |
@@ -306,3 +306,5 @@ 'use strict'; | ||
}, remoteEntryInitOptions)); | ||
federationInstance.initShareScopeMap(name, shareScope); | ||
federationInstance.initShareScopeMap(name, shareScope, { | ||
hostShareScopeMap: (remoteEntryInitOptions === null || remoteEntryInitOptions === void 0 ? void 0 : remoteEntryInitOptions.shareScopeMap) || {} | ||
}); | ||
if (webpackRequire.federation.attachShareScopeMap) { | ||
@@ -309,0 +311,0 @@ webpackRequire.federation.attachShareScopeMap(webpackRequire); |
@@ -284,3 +284,5 @@ import * as runtime from '@module-federation/runtime'; | ||
}, remoteEntryInitOptions)); | ||
federationInstance.initShareScopeMap(name, shareScope); | ||
federationInstance.initShareScopeMap(name, shareScope, { | ||
hostShareScopeMap: (remoteEntryInitOptions === null || remoteEntryInitOptions === void 0 ? void 0 : remoteEntryInitOptions.shareScopeMap) || {} | ||
}); | ||
if (webpackRequire.federation.attachShareScopeMap) { | ||
@@ -287,0 +289,0 @@ webpackRequire.federation.attachShareScopeMap(webpackRequire); |
{ | ||
"public": true, | ||
"name": "@module-federation/webpack-bundler-runtime", | ||
"version": "0.0.0-next-20240611070359", | ||
"version": "0.0.0-next-20240612203225", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "description": "Module Federation Runtime for webpack", | ||
"dependencies": { | ||
"@module-federation/runtime": "0.0.0-next-20240611070359", | ||
"@module-federation/sdk": "0.0.0-next-20240611070359" | ||
"@module-federation/runtime": "0.0.0-next-20240612203225", | ||
"@module-federation/sdk": "0.0.0-next-20240612203225" | ||
}, | ||
@@ -53,4 +53,4 @@ "exports": { | ||
"devDependencies": { | ||
"@module-federation/runtime": "0.0.0-next-20240611070359" | ||
"@module-federation/runtime": "0.0.0-next-20240612203225" | ||
} | ||
} |
65750
1494
+ Added@module-federation/runtime@0.0.0-next-20240612203225(transitive)
+ Added@module-federation/sdk@0.0.0-next-20240612203225(transitive)
- Removed@module-federation/runtime@0.0.0-next-20240611070359(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240611070359(transitive)