We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 450d7df commit 47db473Copy full SHA for 47db473
packages/plugin-react/src/index.ts
@@ -370,7 +370,8 @@ export default function viteReact(opts: Options = {}): Plugin[] {
370
let nativePlugin: ((options: any) => Plugin) | undefined
371
try {
372
// NOTE: `+` is to bypass lint & typecheck. vite/internal exists for newer rolldown-vite
373
- nativePlugin = (await import('vite' + '/internal'))
+ const vite = 'vite'
374
+ nativePlugin = (await import(vite + '/internal'))
375
.reactRefreshWrapperPlugin
376
} catch {}
377
if (
0 commit comments