Skip to content
Merged
Changes from all 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
3 changes: 2 additions & 1 deletion packages/plugin-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,8 @@ export default function viteReact(opts: Options = {}): Plugin[] {
let nativePlugin: ((options: any) => Plugin) | undefined
try {
// NOTE: `+` is to bypass lint & typecheck. vite/internal exists for newer rolldown-vite
nativePlugin = (await import('vite' + '/internal'))
const vite = 'vite'
nativePlugin = (await import(vite + '/internal'))
.reactRefreshWrapperPlugin
} catch {}
if (
Expand Down
Loading