Skip to content

Commit 25a53b9

Browse files
committed
chore: update
2 parents a35d1b5 + b624840 commit 25a53b9

Some content is hidden

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

47 files changed

+3419
-2507
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ packages/vite/runtime
1414
packages/rolldown/src/public/fonts
1515
packages/rolldown/src/app/public/fonts
1616
packages/rolldown/runtime
17+
packages/kit/skills
1718
.rolldown
1819
*.tsbuildinfo
1920
docs/.vitepress/cache

docs/guide/index.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,32 @@ Install or upgrade your Vite to the beta version 13+:
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 in your Vite config:
45+
Vite DevTools supports two client modes: embedded and standalone. You can choose the mode in your Vite config.
46+
47+
Use embedded mode:
48+
49+
```ts [vite.config.ts] twoslash
50+
import { DevTools } from '@vitejs/devtools'
51+
import { defineConfig } from 'vite'
52+
53+
export default defineConfig({
54+
plugins: [
55+
DevTools(),
56+
],
57+
build: {
58+
rolldownOptions: {
59+
devtools: {}, // enable devtools mode
60+
},
61+
}
62+
})
63+
```
64+
Or use standalone mode:
4665

4766
```ts [vite.config.ts] twoslash
4867
import { defineConfig } from 'vite'
@@ -54,13 +73,14 @@ export default defineConfig({
5473
})
5574
```
5675

57-
Run your Vite build, to generate the Rolldown build metadata:
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.
5877

5978
```bash
6079
pnpm build
6180
```
6281

63-
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:
6484

6585
```bash
6686
pnpm dev

docs/kit/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,4 @@ The docs might not cover all the details—please help us improve them by submit
110110
- **[vite-plugin-vue-tracer](https://github.com/antfu/vite-plugin-vue-tracer)** - An action button that triggers a DOM inspector
111111
- [Plugin hook](https://github.com/antfu/vite-plugin-vue-tracer/blob/9f86fe723543405eea5d30588fe783796193bfd8/src/plugin.ts#L139-L157)
112112
- [Client script](https://github.com/antfu/vite-plugin-vue-tracer/blob/main/src/client/vite-devtools.ts)
113+
- **[Oxc Inspector](https://github.com/yuyinws/oxc-inspector/blob/main/src/vite.ts)** - An iframe-based dock entry with custom RPC functions

eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ export default antfu({
1515
.removeRules(
1616
'vue/no-template-shadow',
1717
'pnpm/json-prefer-workspace-settings',
18+
'markdown/fenced-code-language',
1819
)

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"type": "module",
3-
"version": "0.0.0-alpha.28",
3+
"version": "0.0.0-alpha.32",
44
"private": true,
5-
"packageManager": "pnpm@10.28.2",
5+
"packageManager": "pnpm@10.30.3",
66
"scripts": {
77
"build": "turbo run build",
88
"build:debug": "NUXT_DEBUG_BUILD=true pnpm -r run build",
99
"watch": "pnpm -r run watch",
1010
"dev": "pnpm -C packages/rolldown run dev",
11+
"dev:vite": "pnpm -C packages/vite run dev",
1112
"docs": "pnpm -C docs run docs",
1213
"docs:build": "pnpm -C docs run docs:build",
1314
"docs:serve": "pnpm -C docs run docs:serve",

packages/core/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vitejs/devtools",
33
"type": "module",
4-
"version": "0.0.0-alpha.28",
4+
"version": "0.0.0-alpha.32",
55
"description": "Vite DevTools",
66
"author": "VoidZero Inc.",
77
"license": "MIT",
@@ -25,6 +25,7 @@
2525
"./cli-commands": "./dist/cli-commands.js",
2626
"./client/inject": "./dist/client/inject.js",
2727
"./client/webcomponents": "./dist/client/webcomponents.js",
28+
"./config": "./dist/config.js",
2829
"./dirs": "./dist/dirs.js",
2930
"./package.json": "./package.json"
3031
},

packages/core/playground/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "playground",
33
"type": "module",
4-
"version": "0.0.0-alpha.28",
4+
"version": "0.0.0-alpha.32",
55
"private": true,
66
"scripts": {
77
"dev": "DEBUG='vite:devtools:*' VITE_DEVTOOLS_LOCAL_DEV=true vite",

packages/core/src/client/standalone/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ watch(
3535
},
3636
{ immediate: true },
3737
)
38+
39+
function switchEntry(id: string | undefined) {
40+
if (id) {
41+
context.docks.switchEntry(id)
42+
}
43+
}
3844
</script>
3945

4046
<template>
@@ -52,7 +58,7 @@ watch(
5258
:groups="context.docks.groupedEntries"
5359
:is-vertical="false"
5460
:selected="context.docks.selected"
55-
@select="(e) => context.docks.switchEntry(e?.id)"
61+
@select="(e) => switchEntry(e?.id)"
5662
>
5763
<template #separator>
5864
<div class="border-base border-b w-full my-2" />

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/DockPanel.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ onMounted(() => {
163163
<div
164164
v-show="context.docks.selected && context.docks.selected.type !== 'action'"
165165
ref="dockPanel"
166-
class="bg-glass:75 rounded-lg border border-base shadow"
166+
class="bg-glass:75 rounded-lg border border-base shadow overflow-hidden"
167167
:style="panelStyle"
168168
>
169169
<DockPanelResizer :panel="context.panel" />

0 commit comments

Comments
 (0)