Skip to content

Commit aab4f13

Browse files
authored
docs: precise plugin-react-swc build when using plugins (#12020)
1 parent 083632c commit aab4f13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/plugins/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ Check out [Using Plugins](../guide/using-plugins) for information on how to use
2222

2323
### [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react)
2424

25-
- Uses esbuild and Babel, achieving fast HMR with a small package footprint and the flexibility of being able to use the Babel transform pipeline.
25+
- Uses esbuild and Babel, achieving fast HMR with a small package footprint and the flexibility of being able to use the Babel transform pipeline. Without additional Babel plugins, only esbuild is used during builds.
2626

2727
### [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc)
2828

29-
- Uses esbuild during build, but replaces Babel with SWC during development. For big projects that don't require non-standard React extensions, cold start and Hot Module Replacement (HMR) can be significantly faster.
29+
- Replaces Babel with SWC during development. During builds, SWC+esbuild are used when using plugins, and esbuild only otherwise. For big projects that don't require non-standard React extensions, cold start and Hot Module Replacement (HMR) can be significantly faster.
3030

3131
### [@vitejs/plugin-legacy](https://github.com/vitejs/vite/tree/main/packages/plugin-legacy)
3232

0 commit comments

Comments
 (0)