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[] {
140
140
return [
141
141
{
142
142
tag : 'script' ,
143
- attrs : { type : 'module' } ,
143
+ attrs : { type : 'module' , async : 'true' } ,
144
144
children : getPreambleCode ( config . server ! . config . base ) ,
145
145
} ,
146
146
]
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ const react = (_options?: Options): PluginOption[] => {
135
135
transformIndexHtml : ( _ , config ) => [
136
136
{
137
137
tag : 'script' ,
138
- attrs : { type : 'module' } ,
138
+ attrs : { type : 'module' , async : 'true' } ,
139
139
children : getPreambleCode ( config . server ! . config . base ) ,
140
140
} ,
141
141
] ,
Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
329
329
return [
330
330
{
331
331
tag : 'script' ,
332
- attrs : { type : 'module' } ,
332
+ attrs : { type : 'module' , async : 'true' } ,
333
333
children : getPreambleCode ( config . server ! . config . base ) ,
334
334
} ,
335
335
]
You can’t perform that action at this time.
0 commit comments