File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
140140 return [
141141 {
142142 tag : 'script' ,
143- attrs : { type : 'module' } ,
143+ attrs : { type : 'module' , async : 'true' } ,
144144 children : getPreambleCode ( config . server ! . config . base ) ,
145145 } ,
146146 ]
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const react = (_options?: Options): PluginOption[] => {
135135 transformIndexHtml : ( _ , config ) => [
136136 {
137137 tag : 'script' ,
138- attrs : { type : 'module' } ,
138+ attrs : { type : 'module' , async : 'true' } ,
139139 children : getPreambleCode ( config . server ! . config . base ) ,
140140 } ,
141141 ] ,
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
329329 return [
330330 {
331331 tag : 'script' ,
332- attrs : { type : 'module' } ,
332+ attrs : { type : 'module' , async : 'true' } ,
333333 children : getPreambleCode ( config . server ! . config . base ) ,
334334 } ,
335335 ]
You can’t perform that action at this time.
0 commit comments