diff --git a/packages/create-vite/src/index.ts b/packages/create-vite/src/index.ts index 47d9dab68cf9ca..04e44a2c1f0429 100755 --- a/packages/create-vite/src/index.ts +++ b/packages/create-vite/src/index.ts @@ -483,7 +483,7 @@ function setupReactSwc(root: string, isTs: boolean) { editFile(path.resolve(root, 'package.json'), (content) => { return content.replace( /"@vitejs\/plugin-react": ".+?"/, - `"@vitejs/plugin-react-swc": "^3.0.0"`, + `"@vitejs/plugin-react-swc": "^3.3.2"`, ) }) editFile(