Skip to content

Commit 0b51a4a

Browse files
committed
Merge branch 'main' into feat/static-mode
2 parents 5a3af68 + 5f2f79f commit 0b51a4a

File tree

38 files changed

+1941
-1601
lines changed

38 files changed

+1941
-1601
lines changed

docs/guide/index.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,26 @@ 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
```
3838

39-
Install the DevTools plugin:
39+
Install the required DevTools plugin for both client modes:
4040

4141
```bash
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+
Vite DevTools supports two client modes: embedded and standalone. You can choose the mode in your Vite config.
46+
47+
Use embedded mode:
4648

4749
```ts [vite.config.ts] twoslash
4850
import { DevTools } from '@vitejs/devtools'
@@ -59,14 +61,26 @@ export default defineConfig({
5961
}
6062
})
6163
```
64+
Or use standalone mode:
6265

63-
Run your Vite build, to generate the Rolldown build metadata:
66+
```ts [vite.config.ts] twoslash
67+
import { defineConfig } from 'vite'
68+
69+
export default defineConfig({
70+
devtools: {
71+
enabled: true,
72+
},
73+
})
74+
```
75+
76+
Run a Vite build to generate Rolldown build metadata. In standalone mode, DevTools also starts a local server to host the client after the build completes.
6477

6578
```bash
6679
pnpm build
6780
```
6881

69-
Open the DevTools panel in your browser to play with the DevTools:
82+
83+
If you're using embedded mode, start your app and open the DevTools panel in the browser:
7084

7185
```bash
7286
pnpm dev

eslint.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@ export default antfu({
1616
'vue/no-template-shadow',
1717
'pnpm/json-prefer-workspace-settings',
1818
'markdown/fenced-code-language',
19+
'e18e/prefer-static-regex',
20+
'e18e/prefer-spread-syntax',
1921
)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"version": "0.0.0-alpha.33",
44
"private": true,
5-
"packageManager": "pnpm@10.30.3",
5+
"packageManager": "pnpm@10.32.0",
66
"scripts": {
77
"build": "turbo run build",
88
"build:debug": "NUXT_DEBUG_BUILD=true pnpm -r run build",

packages/core/package.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,23 @@
8585
"vue": "catalog:frontend",
8686
"vue-router": "catalog:playground",
8787
"vue-tsc": "catalog:devtools"
88+
},
89+
"inlinedDependencies": {
90+
"@vue/shared": "3.5.30",
91+
"@vue/reactivity": "3.5.30",
92+
"@vue/runtime-core": "3.5.30",
93+
"csstype": "3.2.3",
94+
"@vue/runtime-dom": "3.5.30",
95+
"vue": "3.5.30",
96+
"dompurify": "3.3.2",
97+
"@xterm/addon-fit": "0.11.0",
98+
"@xterm/xterm": "6.0.0",
99+
"@vueuse/shared": "14.2.1",
100+
"@vueuse/core": "14.2.1",
101+
"sisteransi": "1.0.5",
102+
"@clack/core": "1.1.0",
103+
"@clack/prompts": "1.1.0",
104+
"ansis": "4.2.0",
105+
"get-port-please": "3.2.0"
88106
}
89107
}

packages/core/src/client/webcomponents/.generated/css.ts

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

packages/core/src/client/webcomponents/components/Dock.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ onMounted(() => {
252252
'vite-devtools-vertical': context.panel.isVertical,
253253
'vite-devtools-minimized': isMinimized,
254254
}"
255+
class="color-base"
255256
@mousemove="bringUp"
256257
>
257258
<div

packages/core/src/client/webcomponents/components/DockPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ onMounted(() => {
179179
<div
180180
v-show="context.docks.selected && context.docks.selected.type !== 'action'"
181181
ref="dockPanel"
182-
class="bg-glass:75 rounded-lg border border-base shadow overflow-hidden"
182+
class="bg-glass:75 rounded-lg border border-base color-base shadow overflow-hidden"
183183
:style="panelStyle"
184184
@contextmenu="openContextMenu"
185185
>

packages/core/src/client/webcomponents/components/FloatingPopover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ const FloatingPopoverComponent = defineComponent({
129129
{
130130
ref: 'panel',
131131
class: [
132-
'fixed z-floating-tooltip text-xs transition-all duration-300 w-max bg-glass border border-base rounded px2 p1',
132+
'fixed z-floating-tooltip text-xs transition-all duration-300 w-max bg-glass color-base border border-base rounded px2 p1',
133133
props.item ? 'op100' : 'op0 pointer-events-none',
134134
],
135135
style,

packages/core/src/client/webcomponents/components/ViewIframe.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function navigateTo(url: string) {
8787
8888
// Ensure URL has protocol
8989
let normalizedUrl = url.trim()
90-
if (normalizedUrl && !normalizedUrl.match(/^https?:\/\//i)) {
90+
if (normalizedUrl && !/^https?:\/\//i.test(normalizedUrl)) {
9191
// If it starts with /, treat as same-origin path
9292
if (normalizedUrl.startsWith('/')) {
9393
normalizedUrl = `${window.location.origin}${normalizedUrl}`

packages/kit/package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,14 @@
4949
"my-ua-parser": "catalog:frontend",
5050
"tsdown": "catalog:build",
5151
"vite": "catalog:build"
52+
},
53+
"inlinedDependencies": {
54+
"my-ua-parser": "2.0.4",
55+
"@vue/shared": "3.5.30",
56+
"@vue/reactivity": "3.5.30",
57+
"@vue/runtime-core": "3.5.30",
58+
"csstype": "3.2.3",
59+
"@vue/runtime-dom": "3.5.30",
60+
"vue": "3.5.30"
5261
}
5362
}

0 commit comments

Comments
 (0)