File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
packages/runtime/src/remote Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @module-federation/runtime ' : patch
3
+ ---
4
+
5
+ chore(runtime): remove duplicate registerRemotes warn
Original file line number Diff line number Diff line change @@ -441,18 +441,16 @@ export class RemoteHandler {
441
441
} else {
442
442
const messages = [
443
443
`The remote "${ remote . name } " is already registered.` ,
444
- options ?. force
445
- ? 'Hope you have known that OVERRIDE it may have some unexpected errors'
446
- : 'If you want to merge the remote, you can set "force: true".' ,
444
+ 'Please note that overriding it may cause unexpected errors.' ,
447
445
] ;
448
446
if ( options ?. force ) {
449
447
// remove registered remote
450
448
this . removeRemote ( registeredRemote ) ;
451
449
normalizeRemote ( ) ;
452
450
targetRemotes . push ( remote ) ;
453
451
this . hooks . lifecycle . registerRemote . emit ( { remote, origin : host } ) ;
452
+ warn ( messages . join ( ' ' ) ) ;
454
453
}
455
- warn ( messages . join ( ' ' ) ) ;
456
454
}
457
455
}
458
456
You can’t perform that action at this time.
0 commit comments