Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/plugin-react-oxc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
return [
{
tag: 'script',
attrs: { type: 'module' },
attrs: { type: 'module', async: 'true' },
children: getPreambleCode(config.server!.config.base),
},
]
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react-swc/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ const react = (_options?: Options): PluginOption[] => {
return [
{
tag: 'script',
attrs: { type: 'module' },
attrs: { type: 'module', async: 'true' },
children: getPreambleCode(config.server!.config.base),
},
]
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
return [
{
tag: 'script',
attrs: { type: 'module' },
attrs: { type: 'module', async: 'true' },
children: getPreambleCode(config.server!.config.base),
},
]
Expand Down
Loading