File tree Expand file tree Collapse file tree 2 files changed +24
-19
lines changed Expand file tree Collapse file tree 2 files changed +24
-19
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @module-federation/sdk ' : patch
3
+ ---
4
+
5
+ fix: don't modify loaded tag
Original file line number Diff line number Diff line change @@ -64,19 +64,19 @@ export function createScript(info: {
64
64
if ( createScriptRes . timeout ) timeout = createScriptRes . timeout ;
65
65
}
66
66
}
67
- }
68
67
69
- const attrs = info . attrs ;
70
- if ( attrs ) {
71
- Object . keys ( attrs ) . forEach ( ( name ) => {
72
- if ( script ) {
73
- if ( name === 'async' || name === 'defer' ) {
74
- script [ name ] = attrs [ name ] ;
75
- } else {
76
- script . setAttribute ( name , attrs [ name ] ) ;
68
+ const attrs = info . attrs ;
69
+ if ( attrs ) {
70
+ Object . keys ( attrs ) . forEach ( ( name ) => {
71
+ if ( script ) {
72
+ if ( name === 'async' || name === 'defer' ) {
73
+ script [ name ] = attrs [ name ] ;
74
+ } else {
75
+ script . setAttribute ( name , attrs [ name ] ) ;
76
+ }
77
77
}
78
- }
79
- } ) ;
78
+ } ) ;
79
+ }
80
80
}
81
81
82
82
const onScriptComplete = (
@@ -156,15 +156,15 @@ export function createLink(info: {
156
156
link = createLinkRes ;
157
157
}
158
158
}
159
- }
160
159
161
- const attrs = info . attrs ;
162
- if ( attrs ) {
163
- Object . keys ( attrs ) . forEach ( ( name ) => {
164
- if ( link ) {
165
- link . setAttribute ( name , attrs [ name ] ) ;
166
- }
167
- } ) ;
160
+ const attrs = info . attrs ;
161
+ if ( attrs ) {
162
+ Object . keys ( attrs ) . forEach ( ( name ) => {
163
+ if ( link ) {
164
+ link . setAttribute ( name , attrs [ name ] ) ;
165
+ }
166
+ } ) ;
167
+ }
168
168
}
169
169
170
170
const onLinkComplete = (
You can’t perform that action at this time.
0 commit comments