Skip to content

Commit aeab93a

Browse files
committed
fix(runtime-core): register share if not registered
1 parent 6bddce5 commit aeab93a

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/runtime-core': patch
3+
---
4+
5+
fix(runtime-core): register share if not registered

packages/runtime-core/src/shared/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class SharedHandler {
8989
sharedVal,
9090
this.hooks.lifecycle.resolveShare,
9191
);
92-
if (!registeredShared && sharedVal && sharedVal.lib) {
92+
if (!registeredShared) {
9393
this.setShared({
9494
pkgName: sharedKey,
9595
lib: sharedVal.lib,

0 commit comments

Comments
 (0)