Skip to content

Commit 47db473

Browse files
authored
chore(react): fix ecosystem-ci failure (#888)
1 parent 450d7df commit 47db473

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/plugin-react/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,8 @@ export default function viteReact(opts: Options = {}): Plugin[] {
370370
let nativePlugin: ((options: any) => Plugin) | undefined
371371
try {
372372
// NOTE: `+` is to bypass lint & typecheck. vite/internal exists for newer rolldown-vite
373-
nativePlugin = (await import('vite' + '/internal'))
373+
const vite = 'vite'
374+
nativePlugin = (await import(vite + '/internal'))
374375
.reactRefreshWrapperPlugin
375376
} catch {}
376377
if (

0 commit comments

Comments
 (0)