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/create-vite/src/index.ts
+11-3Lines changed: 11 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -815,7 +815,11 @@ function setupReactCompiler(root: string, isTs: boolean) {
815
815
)
816
816
updateReactCompilerReadme(
817
817
root,
818
-
'The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.\n\nNote: This will impact Vite dev & build performances.',
818
+
`The React Compiler is enabled on this template. See [this documentation](https://react.dev/learn/react-compiler) for more information.
819
+
820
+
Note: This will impact Vite dev & build performances.
821
+
822
+
Additionaly, you may want to switch linting to ESLint to use [lint rules powered by the React Compiler](https://react.dev/reference/eslint-plugin-react-hooks).`,
819
823
)
820
824
}
821
825
@@ -824,12 +828,16 @@ function updateReactCompilerReadme(root: string, newBody: string) {
Copy file name to clipboardExpand all lines: packages/create-vite/template-react-ts/README.md
+1-62Lines changed: 1 addition & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,65 +9,4 @@ Currently, two official plugins are available:
9
9
10
10
## React Compiler
11
11
12
-
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
-
14
-
## Expanding the ESLint configuration
15
-
16
-
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
17
-
18
-
```js
19
-
exportdefaultdefineConfig([
20
-
globalIgnores(['dist']),
21
-
{
22
-
files: ['**/*.{ts,tsx}'],
23
-
extends: [
24
-
// Other configs...
25
-
26
-
// Remove tseslint.configs.recommended and replace with this
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). Additionaly, you may want to switch linting to ESLint to use [lint rules powered by the React Compiler](https://react.dev/reference/eslint-plugin-react-hooks).
Copy file name to clipboardExpand all lines: packages/create-vite/template-react/README.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,4 @@ Currently, two official plugins are available:
9
9
10
10
## React Compiler
11
11
12
-
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
-
14
-
## Expanding the ESLint configuration
15
-
16
-
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
12
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation). If you are developing a production application, we recommend starting with the TypeScript template instead.
0 commit comments