We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f090b15 commit 35ebb46Copy full SHA for 35ebb46
.changeset/tame-mirrors-greet.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/runtime': patch
3
4
+
5
+fix: support config string shareScope
packages/runtime/src/utils/share.ts
@@ -47,7 +47,9 @@ export function formatShare(
47
get,
48
loaded: 'lib' in shareArgs ? true : undefined,
49
version: shareArgs.version ?? '0',
50
- scope: Array.isArray(shareArgs.scope) ? shareArgs.scope : ['default'],
+ scope: Array.isArray(shareArgs.scope)
51
+ ? shareArgs.scope
52
+ : [shareArgs.scope ?? 'default'],
53
strategy: shareArgs.strategy || 'version-first',
54
};
55
}
0 commit comments