Skip to content

Commit e596798

Browse files
authored
docs: Install vite as a devDependency (#5547)
1 parent 2c90c0c commit e596798

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

docs/start/framework/react/build-from-scratch.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,25 @@ TanStack Start is powered by [Vite](https://vite.dev/) and [TanStack Router](htt
5252
To install them, run:
5353

5454
```shell
55-
npm i @tanstack/react-start @tanstack/react-router vite
55+
npm i @tanstack/react-start @tanstack/react-router
56+
```
57+
58+
We also need vite as a devDependency:
59+
60+
```shell
61+
npm i -D vite
5662
```
5763

5864
You'll also need React:
5965

6066
```shell
61-
npm i react react-dom @vitejs/plugin-react
67+
npm i react react-dom
68+
```
69+
70+
As well as React's Vite plugin:
71+
72+
```shell
73+
npm i -D @vitejs/plugin-react
6274
```
6375

6476
Alternatively, you can also use `@vitejs/plugin-react-oxc` or `@vitejs/plugin-react-swc`.

0 commit comments

Comments
 (0)