Skip to content

Commit 1c00c98

Browse files
committed
fix: async: true not 'true'
1 parent e90c5b5 commit 1c00c98

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/plugin-react-oxc/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
141141
return [
142142
{
143143
tag: 'script',
144-
attrs: { type: 'module', async: 'true' },
144+
attrs: { type: 'module', async: true },
145145
children: getPreambleCode(config.server!.config.base),
146146
},
147147
]

packages/plugin-react-swc/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const react = (_options?: Options): PluginOption[] => {
147147
return [
148148
{
149149
tag: 'script',
150-
attrs: { type: 'module', async: 'true' },
150+
attrs: { type: 'module', async: true },
151151
children: getPreambleCode(config.server!.config.base),
152152
},
153153
]

packages/plugin-react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
366366
return [
367367
{
368368
tag: 'script',
369-
attrs: { type: 'module', async: 'true' },
369+
attrs: { type: 'module', async: true },
370370
children: getPreambleCode(config.server!.config.base),
371371
},
372372
]

0 commit comments

Comments
 (0)