Skip to content

Commit a35d1b5

Browse files
committed
docs: update devtools usage guide
1 parent 5931097 commit a35d1b5

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

docs/guide/index.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ Vite DevTools is a comprehensive set of developer tools for visualizing and anal
2525

2626
If you want to give an early preview, you can try it out by building this project from source, or install the preview build with the following steps:
2727

28-
Install or upgrade your Vite to the beta version 8:
28+
Install or upgrade your Vite to the beta version 13+:
2929

3030
<!-- eslint-skip -->
3131
```json [package.json]
3232
{
3333
"dependencies": {
34-
"vite": "^8.0.0-beta.7"
34+
"vite": "^8.0.0-beta.13"
3535
}
3636
}
3737
```
@@ -42,21 +42,15 @@ Install the DevTools plugin:
4242
pnpm add -D @vitejs/devtools
4343
```
4444

45-
Enable the DevTools plugin in your Vite config and turn on the devtools mode for Rolldown:
45+
Enable the DevTools in your Vite config:
4646

4747
```ts [vite.config.ts] twoslash
48-
import { DevTools } from '@vitejs/devtools'
4948
import { defineConfig } from 'vite'
5049

5150
export default defineConfig({
52-
plugins: [
53-
DevTools(),
54-
],
55-
build: {
56-
rolldownOptions: {
57-
devtools: {}, // enable devtools mode
58-
},
59-
}
51+
devtools: {
52+
enabled: true,
53+
},
6054
})
6155
```
6256

0 commit comments

Comments
 (0)