You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/plugin-react/README.md
-12Lines changed: 0 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,8 +3,6 @@
3
3
The all-in-one Vite plugin for React projects.
4
4
5
5
- enable [Fast Refresh](https://www.npmjs.com/package/react-refresh) in development
6
-
- use the [automatic JSX runtime](https://github.com/alloc/vite-react-jsx#faq)
7
-
- avoid manual `import React` in `.jsx` and `.tsx` modules
8
6
- dedupe the `react` and `react-dom` packages
9
7
- use custom Babel plugins/presets
10
8
@@ -43,16 +41,6 @@ react({
43
41
})
44
42
```
45
43
46
-
## Opting out of the automatic JSX runtime
47
-
48
-
By default, the plugin uses the [automatic JSX runtime](https://github.com/alloc/vite-react-jsx#faq). However, if you encounter any issues, you may opt out using the `jsxRuntime` option.
49
-
50
-
```js
51
-
react({
52
-
jsxRuntime:'classic',
53
-
})
54
-
```
55
-
56
44
## Babel configuration
57
45
58
46
The `babel` option lets you add plugins, presets, and [other configuration](https://babeljs.io/docs/en/options) to the Babel transformation performed on each JSX/TSX file.
0 commit comments