@module-federation/webpack-bundler-runtime
Advanced tools
Comparing version 0.0.0-canary-1701680335968 to 0.0.0-canary-1701694314517
@@ -26,5 +26,8 @@ 'use strict'; | ||
function proxyShareScopeMap(webpackRequire) { | ||
if (!webpackRequire.S || webpackRequire.federation.hasProxyShareScopeMap || !webpackRequire.federation.initOptions || !webpackRequire.federation.initOptions.name) { | ||
if (!webpackRequire.S || webpackRequire.federation.hasProxyShareScopeMap || !webpackRequire.federation.initOptions) { | ||
return; | ||
} | ||
if (!webpackRequire.g["__FEDERATION__"].__SHARE__[webpackRequire.federation.initOptions.name]) { | ||
return; | ||
} | ||
webpackRequire.S = webpackRequire.g["__FEDERATION__"].__SHARE__[webpackRequire.federation.initOptions.name]; | ||
@@ -235,3 +238,2 @@ webpackRequire.federation.hasProxyShareScopeMap = true; | ||
var shareScopeName = param.shareScopeName, webpackRequire = param.webpackRequire, initPromises = param.initPromises, initTokens = param.initTokens, initScope = param.initScope; | ||
proxyShareScopeMap(webpackRequire); | ||
if (!initScope) initScope = []; | ||
@@ -268,2 +270,3 @@ // handling circular init calls | ||
var promises = webpackRequire.federation.instance.initializeSharing(shareScopeName); | ||
proxyShareScopeMap(webpackRequire); | ||
var bundlerRuntimeRemotesOptions = webpackRequire.federation.bundlerRuntimeOptions.remotes; | ||
@@ -270,0 +273,0 @@ if (bundlerRuntimeRemotesOptions) { |
import * as runtime from '@module-federation/runtime'; | ||
function proxyShareScopeMap(webpackRequire) { | ||
if (!webpackRequire.S || webpackRequire.federation.hasProxyShareScopeMap || !webpackRequire.federation.initOptions || !webpackRequire.federation.initOptions.name) { | ||
if (!webpackRequire.S || webpackRequire.federation.hasProxyShareScopeMap || !webpackRequire.federation.initOptions) { | ||
return; | ||
} | ||
if (!webpackRequire.g["__FEDERATION__"].__SHARE__[webpackRequire.federation.initOptions.name]) { | ||
return; | ||
} | ||
webpackRequire.S = webpackRequire.g["__FEDERATION__"].__SHARE__[webpackRequire.federation.initOptions.name]; | ||
@@ -212,3 +215,2 @@ webpackRequire.federation.hasProxyShareScopeMap = true; | ||
var shareScopeName = param.shareScopeName, webpackRequire = param.webpackRequire, initPromises = param.initPromises, initTokens = param.initTokens, initScope = param.initScope; | ||
proxyShareScopeMap(webpackRequire); | ||
if (!initScope) initScope = []; | ||
@@ -245,2 +247,3 @@ // handling circular init calls | ||
var promises = webpackRequire.federation.instance.initializeSharing(shareScopeName); | ||
proxyShareScopeMap(webpackRequire); | ||
var bundlerRuntimeRemotesOptions = webpackRequire.federation.bundlerRuntimeOptions.remotes; | ||
@@ -247,0 +250,0 @@ if (bundlerRuntimeRemotesOptions) { |
{ | ||
"public": true, | ||
"name": "@module-federation/webpack-bundler-runtime", | ||
"version": "0.0.0-canary-1701680335968", | ||
"version": "0.0.0-canary-1701694314517", | ||
"license": "MIT", | ||
@@ -19,5 +19,5 @@ "description": "Module Federation Runtime for webpack", | ||
"dependencies": { | ||
"@module-federation/runtime": "0.0.0-canary-1701680335968" | ||
"@module-federation/runtime": "0.0.0-canary-1701694314517" | ||
}, | ||
"peerDependencies": {} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34471
757
+ Added@module-federation/runtime@0.0.0-canary-1701694314517(transitive)
+ Added@module-federation/sdk@0.0.0-canary-1701694314517(transitive)
- Removed@module-federation/runtime@0.0.0-canary-1701680335968(transitive)
- Removed@module-federation/sdk@0.0.0-canary-1701680335968(transitive)
Updated@module-federation/runtime@0.0.0-canary-1701694314517