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 ea34795 commit 364f2bcCopy full SHA for 364f2bc
.changeset/unlucky-teachers-yawn.md
@@ -0,0 +1,5 @@
1
+---
2
+'@module-federation/sdk': patch
3
4
+
5
+fix: Resolve the problem that static resource preload is not reused
packages/sdk/src/dom.ts
@@ -140,6 +140,7 @@ export function createLink(
140
if (!link) {
141
link = document.createElement('link');
142
link.setAttribute('href', url);
143
+ link.setAttribute('crossorigin', 'anonymous');
144
145
if (createLinkHook) {
146
const createLinkRes = createLinkHook(url);
0 commit comments