@vitejs/plugin-react-swc
Advanced tools
Comparing version 3.0.0-beta.1 to 3.0.0-beta.2
{ | ||
"name": "@vitejs/plugin-react-swc", | ||
"description": "Use the versatility of SWC for development and the maturity of esbuild for production", | ||
"version": "3.0.0-beta.1", | ||
"description": "Speed up your Vite dev server with SWC", | ||
"version": "3.0.0-beta.2", | ||
"author": "Arnaud Barré (https://github.com/ArnaudBarre)", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
# @vitejs/plugin-react-swc [![npm](https://img.shields.io/npm/v/@vitejs/plugin-react-swc)](https://www.npmjs.com/package/@vitejs/plugin-react-swc) | ||
Use the versatility of [SWC](https://swc.rs/) for development and the maturity of [esbuild](https://esbuild.github.io/) for production. | ||
Speed up your Vite dev server with [SWC](https://swc.rs/) | ||
@@ -41,4 +41,6 @@ - ✅ A fast Fast Refresh (~20x faster than Babel) | ||
For React refresh to work, your file should only export React components. The best explanation I've read is the one from the [Gatsby docs](https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#how-it-works). | ||
For React refresh to work correctly, your file should only export React components. The best explanation I've read is the one from the [Gatsby docs](https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#how-it-works). | ||
If an incompatible change in exports is found, the module will be invalidated and HMR will propagate. To make it easier to export simple constants alongside your component, the module is only invalidated when their value changes. | ||
You can catch mistakes and get more detailed warning with this [eslint rule](https://github.com/ArnaudBarre/eslint-plugin-react-refresh). |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25082
651
46