From 1f8e730caa0872f7618a92b42116957f781324c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Mon, 3 Jul 2023 01:19:15 +0200 Subject: [PATCH] fix(template): bump react-swc plugin version --- packages/create-vite/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(