Skip to content

Commit 3491bca

Browse files
authored
refactor(runtime): reuse the buildId variable (#3884)
1 parent f9985a8 commit 3491bca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime/src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export function getGlobalFederationInstance(
1616
): ModuleFederation | undefined {
1717
const buildId = getBuilderId();
1818
return CurrentGlobal.__FEDERATION__.__INSTANCES__.find((GMInstance) => {
19-
if (buildId && GMInstance.options.id === getBuilderId()) {
19+
if (buildId && GMInstance.options.id === buildId) {
2020
return true;
2121
}
2222

0 commit comments

Comments
 (0)