diff --git a/src/configs/react.ts b/src/configs/react.ts index 6df228708d..820e6ece3a 100644 --- a/src/configs/react.ts +++ b/src/configs/react.ts @@ -45,6 +45,11 @@ export async function react( 'react-hooks': pluginReactHooks, 'react-refresh': pluginReactRefresh, }, + settings: { + react: { + version: 'detect', + }, + }, }, { files,