From c53e2c90964921c8a235e89d5a374d8e8a478826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arnaud=20Barr=C3=A9?= Date: Fri, 9 Dec 2022 22:56:48 +0100 Subject: [PATCH] docs: add plugin-react-swc to official plugins list (#11292) --- docs/plugins/index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/plugins/index.md b/docs/plugins/index.md index a0057760319d8e..ae50eac42ab7b2 100644 --- a/docs/plugins/index.md +++ b/docs/plugins/index.md @@ -18,7 +18,11 @@ Check out [Using Plugins](../guide/using-plugins) for information on how to use ### [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react) -- Provides all-in-one React Support. +- Uses esbuild and Babel, achieving fast HMR with a small package footprint and the flexibility of being able to use the Babel transform pipeline. + +### [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) + +- 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. ### [@vitejs/plugin-legacy](https://github.com/vitejs/vite/tree/main/packages/plugin-legacy)