Skip to content

Commit

Permalink
fix(template): bump react-swc plugin version (vitejs#13699)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre authored and xinxinhe1810 committed Jul 4, 2023
1 parent 9106e25 commit cf0b91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/create-vite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit cf0b91c

Please sign in to comment.