This repository was archived by the owner on Dec 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/universal-module-federation-plugin/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,11 @@ class UniversalModuleFederationPlugin {
24
24
this . webpackVersion = null
25
25
}
26
26
apply ( compiler ) {
27
+ compiler . __umfplugin__allRemotes = Object . assign ( compiler . __umfplugin__allRemotes || { } , this . options . remotes )
27
28
this . webpackVersion = getWebpackVersion ( compiler )
28
29
this . mfOptions = this . getMfInstance ( compiler . options . plugins ) . _options
29
- this . containerRemoteKeyMap = this . getContainerRemoteKeyMap ( this . mfOptions . remotes )
30
- this . remoteMap = this . getRemoteMap ( this . mfOptions . remotes )
30
+ this . containerRemoteKeyMap = this . getContainerRemoteKeyMap ( compiler . __umfplugin__allRemotes )
31
+ this . remoteMap = this . getRemoteMap ( compiler . __umfplugin__allRemotes )
31
32
this . appName = this . mfOptions . name
32
33
this . options . runtimeInject = this . formatRuntimeInject ( this . options . runtimeInject )
33
34
let injectCode = `
@@ -149,7 +150,6 @@ class UniversalModuleFederationPlugin {
149
150
return map
150
151
}
151
152
152
- // TODO: merge remotes
153
153
getRemoteMap ( remotes = { } ) {
154
154
const map = { }
155
155
Object . keys ( remotes ) . forEach ( key => {
You can’t perform that action at this time.
0 commit comments