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 643facd commit ab79047Copy full SHA for ab79047
packages/plugin-react/src/index.ts
@@ -362,7 +362,8 @@ export default function viteReact(opts: Options = {}): Plugin[] {
362
363
let nativePlugin: ((options: any) => Plugin) | undefined
364
try {
365
- nativePlugin = (await import('vite/internal')).reactRefreshWrapperPlugin
+ nativePlugin = (await import('vite' + '/internal'))
366
+ .reactRefreshWrapperPlugin
367
} catch {}
368
if (
369
!nativePlugin ||
0 commit comments