@module-federation/webpack-bundler-runtime
Advanced tools
Comparing version 0.0.0-next-20241112074706 to 0.0.0-next-20241112091020
@@ -98,13 +98,6 @@ 'use strict'; | ||
const remoteModuleName = remoteName + data[1].slice(1); | ||
const instance = webpackRequire.federation.instance; | ||
const loadRemote = ()=>webpackRequire.federation.instance.loadRemote(remoteModuleName, { | ||
loadFactory: false, | ||
from: 'build' | ||
}); | ||
if (instance.options.shareStrategy === 'version-first') { | ||
return Promise.all(instance.sharedHandler.initializeSharing(data[0])).then(()=>{ | ||
return loadRemote(); | ||
}); | ||
} | ||
return loadRemote(); | ||
return webpackRequire.federation.instance.loadRemote(remoteModuleName, { | ||
loadFactory: false, | ||
from: 'build' | ||
}); | ||
} catch (error) { | ||
@@ -111,0 +104,0 @@ onError(error); |
{ | ||
"public": true, | ||
"name": "@module-federation/webpack-bundler-runtime", | ||
"version": "0.0.0-next-20241112074706", | ||
"version": "0.0.0-next-20241112091020", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "description": "Module Federation Runtime for webpack", | ||
"dependencies": { | ||
"@module-federation/runtime": "0.0.0-next-20241112074706", | ||
"@module-federation/sdk": "0.0.0-next-20241112074706" | ||
"@module-federation/runtime": "0.0.0-next-20241112091020", | ||
"@module-federation/sdk": "0.0.0-next-20241112091020" | ||
}, | ||
@@ -53,4 +53,4 @@ "exports": { | ||
"devDependencies": { | ||
"@module-federation/runtime": "0.0.0-next-20241112074706" | ||
"@module-federation/runtime": "0.0.0-next-20241112091020" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
52078
1121
+ Added@module-federation/error-codes@0.0.0-next-20241112091020(transitive)
+ Added@module-federation/runtime@0.0.0-next-20241112091020(transitive)
+ Added@module-federation/sdk@0.0.0-next-20241112091020(transitive)
- Removed@module-federation/error-codes@0.0.0-next-20241112074706(transitive)
- Removed@module-federation/runtime@0.0.0-next-20241112074706(transitive)
- Removed@module-federation/sdk@0.0.0-next-20241112074706(transitive)