Skip to content

Commit ab79047

Browse files
committed
chore: bypass lint?
1 parent 643facd commit ab79047

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
@@ -362,7 +362,8 @@ export default function viteReact(opts: Options = {}): Plugin[] {
362362

363363
let nativePlugin: ((options: any) => Plugin) | undefined
364364
try {
365-
nativePlugin = (await import('vite/internal')).reactRefreshWrapperPlugin
365+
nativePlugin = (await import('vite' + '/internal'))
366+
.reactRefreshWrapperPlugin
366367
} catch {}
367368
if (
368369
!nativePlugin ||

0 commit comments

Comments
 (0)