Skip to content

Commit 13251af

Browse files
committed
update templates to tell users that they can also use @vitejs/plugin-react-swc
1 parent 0d3905b commit 13251af

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/create-project/template-app/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'vite'
22
import * as path from 'path'
3-
import react from '@vitejs/plugin-react'
3+
import react from '@vitejs/plugin-react' // you can also use @vitejs/plugin-react-swc
44
import pages from 'vite-plugin-react-pages'
55

66
export default defineConfig({

packages/create-project/template-lib-monorepo/packages/demos/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'vite'
22
import * as path from 'path'
3-
import react from '@vitejs/plugin-react'
3+
import react from '@vitejs/plugin-react' // you can also use @vitejs/plugin-react-swc
44
import pages, { DefaultPageStrategy } from 'vite-plugin-react-pages'
55

66
export default defineConfig({

packages/create-project/template-lib/docs/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { defineConfig } from 'vite'
22
import * as path from 'path'
3-
import react from '@vitejs/plugin-react'
3+
import react from '@vitejs/plugin-react' // you can also use @vitejs/plugin-react-swc
44
import pages, { DefaultPageStrategy } from 'vite-plugin-react-pages'
55

66
export default defineConfig({

0 commit comments

Comments
 (0)