File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -116,21 +116,21 @@ export function prodExposePlugin(
116
116
} else {
117
117
href = cssPath;
118
118
}
119
+
120
+ if (dontAppendStylesToHead) {
121
+ const key = 'css__${ options . name } __' + exposeItemName;
122
+ window[key] = window[key] || [];
123
+ window[key].push(href);
124
+ return;
125
+ }
119
126
120
127
if (href in seen) return;
121
128
seen[href] = true;
122
129
123
- if (!dontAppendStylesToHead) {
124
- const element = document.createElement('link');
125
- element.rel = 'stylesheet';
126
- element.href = href;
127
- document.head.appendChild(element);
128
- return;
129
- }
130
-
131
- const key = 'css__${ options . name } __' + exposeItemName;
132
- window[key] = window[key] || [];
133
- window[key].push(href);
130
+ const element = document.createElement('link');
131
+ element.rel = 'stylesheet';
132
+ element.href = href;
133
+ document.head.appendChild(element);
134
134
});
135
135
};
136
136
async function __federation_import(name) {
You can’t perform that action at this time.
0 commit comments