@module-federation/webpack-bundler-runtime
Advanced tools
Comparing version 0.0.0-next-20240826081819 to 0.0.0-next-20240827062238
@@ -174,5 +174,8 @@ 'use strict'; | ||
if (!initScope) initScope = []; | ||
var mfInstance = webpackRequire.federation.instance; | ||
// handling circular init calls | ||
var initToken = initTokens[shareScopeName]; | ||
if (!initToken) initToken = initTokens[shareScopeName] = {}; | ||
if (!initToken) initToken = initTokens[shareScopeName] = { | ||
from: mfInstance.name | ||
}; | ||
if (initScope.indexOf(initToken) >= 0) return; | ||
@@ -205,3 +208,7 @@ initScope.push(initToken); | ||
}; | ||
var promises = webpackRequire.federation.instance.initializeSharing(shareScopeName); | ||
var promises = mfInstance.initializeSharing(shareScopeName, { | ||
strategy: mfInstance.options.shareStrategy, | ||
initScope: initScope, | ||
from: 'build' | ||
}); | ||
attachShareScopeMap(webpackRequire); | ||
@@ -208,0 +215,0 @@ var bundlerRuntimeRemotesOptions = webpackRequire.federation.bundlerRuntimeOptions.remotes; |
@@ -152,5 +152,8 @@ import * as runtime from '@module-federation/runtime'; | ||
if (!initScope) initScope = []; | ||
var mfInstance = webpackRequire.federation.instance; | ||
// handling circular init calls | ||
var initToken = initTokens[shareScopeName]; | ||
if (!initToken) initToken = initTokens[shareScopeName] = {}; | ||
if (!initToken) initToken = initTokens[shareScopeName] = { | ||
from: mfInstance.name | ||
}; | ||
if (initScope.indexOf(initToken) >= 0) return; | ||
@@ -183,3 +186,7 @@ initScope.push(initToken); | ||
}; | ||
var promises = webpackRequire.federation.instance.initializeSharing(shareScopeName); | ||
var promises = mfInstance.initializeSharing(shareScopeName, { | ||
strategy: mfInstance.options.shareStrategy, | ||
initScope: initScope, | ||
from: 'build' | ||
}); | ||
attachShareScopeMap(webpackRequire); | ||
@@ -186,0 +193,0 @@ var bundlerRuntimeRemotesOptions = webpackRequire.federation.bundlerRuntimeOptions.remotes; |
{ | ||
"public": true, | ||
"name": "@module-federation/webpack-bundler-runtime", | ||
"version": "0.5.1", | ||
"version": "0.5.2", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "description": "Module Federation Runtime for webpack", |
{ | ||
"public": true, | ||
"name": "@module-federation/webpack-bundler-runtime", | ||
"version": "0.0.0-next-20240826081819", | ||
"version": "0.0.0-next-20240827062238", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "description": "Module Federation Runtime for webpack", | ||
"dependencies": { | ||
"@module-federation/runtime": "0.0.0-next-20240826081819", | ||
"@module-federation/sdk": "0.0.0-next-20240826081819" | ||
"@module-federation/runtime": "0.0.0-next-20240827062238", | ||
"@module-federation/sdk": "0.0.0-next-20240827062238" | ||
}, | ||
@@ -53,4 +53,4 @@ "exports": { | ||
"devDependencies": { | ||
"@module-federation/runtime": "0.0.0-next-20240826081819" | ||
"@module-federation/runtime": "0.0.0-next-20240827062238" | ||
} | ||
} |
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
66160
1507
+ Added@module-federation/runtime@0.0.0-next-20240827062238(transitive)
+ Added@module-federation/sdk@0.0.0-next-20240827062238(transitive)
- Removed@module-federation/runtime@0.0.0-next-20240826081819(transitive)
- Removed@module-federation/sdk@0.0.0-next-20240826081819(transitive)