Skip to content

Commit eea89f6

Browse files
authored
Merge branch 'main' into feat/unified-logger-api
2 parents 0e37a4d + 9bbe587 commit eea89f6

50 files changed

Lines changed: 2210 additions & 1384 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/.vitepress/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export default defineConfig({
3232
text: 'Guide',
3333
items: [
3434
{ text: 'Getting Started', link: '/guide/' },
35+
{ text: 'Features', link: '/guide/features/' },
3536
],
3637
},
3738
{

docs/guide/features.md

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
---
2+
outline: deep
3+
---
4+
5+
# Features
6+
7+
Discover all the features Vite Devtools offers.
8+
9+
## Overview
10+
11+
Shows a quick overview of your app's build analysis, including the build entries, build duration, build directory, number of modules, plugins and more.
12+
13+
![overview](/features/overview.png)
14+
15+
## Modules
16+
17+
Display all files in the bundle in list, detailed list, graph, and folder tree views.
18+
19+
Supports file type filtering and fuzzy search for finding modules.
20+
21+
![modules](/features/modules.png)
22+
23+
Module transformation flow (Parse -> Resolve -> Transform -> Chunk -> Bundle -> Output).
24+
25+
Track the entire process, find bottlenecks and optimizations.
26+
27+
![module-build-flow](/features/module-build-flow.png)
28+
29+
Module Relationship Graph:
30+
31+
![module-relationship-graph](/features/module-graph.png)
32+
33+
Bundled files in folder tree view:
34+
35+
![module-tree](/features/module-tree.png)
36+
37+
In the graph view, the path selector allows you to trace dependencies between 2 modules.
38+
39+
![module-path-selector](/features/module-path-selector.png)
40+
41+
## Plugins
42+
43+
Display all plugins, both official and third-party. Supports plugin type filtering and fuzzy search for finding plugins.
44+
45+
![plugins](/features/plugins.png)
46+
47+
In the plugin details view, see hook costs (Resolve Id, Load, Transform) and processed modules in Build Flow or Sunburst views.
48+
49+
![plugin-details](/features/plugin-details.png)
50+
51+
## Chunks
52+
53+
Display all chunks in your build output in list, detailed list, and graph views.
54+
Supports fuzzy search for finding chunks.
55+
56+
![chunks](/features/chunks.png)
57+
58+
In the graph view, the path selector allows you to trace references between 2 chunks.
59+
60+
![chunk-path-selector](/features/chunk-path-selector.png)
61+
62+
Click a chunk to see details including filename, size, all included modules and more.
63+
64+
![chunk-details](/features/chunk-details.png)
65+
66+
## Assets
67+
68+
Display all static assets in your build output in list, folder tree, treemap, sunburst, and flamegraph views. Supports fuzzy search for finding assets.
69+
70+
![assets](/features/assets.png)
71+
72+
Asset Treemap View:
73+
74+
![asset-treemap](/features/asset-treemap.png)
75+
76+
Asset Sunburst View:
77+
78+
![asset-sunburst](/features/asset-sunburst.png)
79+
80+
Click an asset to view details including name, size, related chunks, and asset relationships.
81+
82+
![asset-details](/features/asset-details.png)
83+
84+
## Packages
85+
86+
Display all npm dependencies in your bundle in table and treemap views, and detect duplicated packages, including both direct and transitive dependencies.
87+
88+
Supports dependency type filtering (direct/transitive) and fuzzy search for finding packages.
89+
90+
![packages](/features/packages.png)
91+
92+
Packages Size Graph View:
93+
94+
![package-treemap](/features/package-treemap.png)
95+
96+
Click a package to see details including name, size, bundled files and more.
97+
98+
![package-details](/features/package-details.png)
99+
100+
## Session Compare
101+
102+
Compare and analyze the bundle changes, including bundle size, initial js size, number of modules, plugins, chunks, assets.
103+
104+
![session-compare](/features/session-compare.png)

docs/guide/index.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +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-
Switch your Vite to [Rolldown Vite](https://vite.dev/guide/rolldown#how-to-try-rolldown):
28+
Install or upgrade your Vite to the beta version 8:
2929

3030
<!-- eslint-skip -->
3131
```json [package.json]
3232
{
3333
"dependencies": {
34-
"vite": "^7.0.0" // [!code --]
35-
"vite": "npm:rolldown-vite@latest" // [!code ++]
34+
"vite": "^8.0.0-beta.7"
3635
}
3736
}
3837
```
@@ -43,7 +42,7 @@ Install the DevTools plugin:
4342
pnpm add -D @vitejs/devtools
4443
```
4544

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

4847
```ts [vite.config.ts] twoslash
4948
import { DevTools } from '@vitejs/devtools'
@@ -55,7 +54,7 @@ export default defineConfig({
5554
],
5655
build: {
5756
rolldownOptions: {
58-
debug: {}, // enable debug mode
57+
devtools: {}, // enable devtools mode
5958
},
6059
}
6160
})
173 KB
Loading
219 KB
Loading
138 KB
Loading

docs/public/features/assets.png

219 KB
Loading
243 KB
Loading
109 KB
Loading

docs/public/features/chunks.png

211 KB
Loading

0 commit comments

Comments
 (0)