Skip to content

Commit f42c8d8

Browse files
committed
feat: add vite-plugin-vue-inspector for enhanced development experience
- Introduced vite-plugin-vue-inspector version 5.3.2 to improve debugging capabilities in Vue applications. - Updated vite.config.mts to conditionally include the VueInspector plugin in development mode, allowing for better inspection and debugging of Vue components. These changes enhance the development workflow by providing tools for easier debugging and inspection of Vue components. Signed-off-by: Innei <tukon479@gmail.com>
1 parent 092200d commit f42c8d8

3 files changed

Lines changed: 126 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@
135135
"vite": "8.0.0-beta.10",
136136
"vite-plugin-checker": "0.12.0",
137137
"vite-plugin-mkcert": "1.17.9",
138+
"vite-plugin-vue-inspector": "5.3.2",
138139
"vite-tsconfig-paths": "6.0.5"
139140
},
140141
"packageManager": "pnpm@10.28.2"

pnpm-lock.yaml

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vite.config.mts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import type { PluginOption } from 'vite'
99

1010
import vue from '@vitejs/plugin-vue'
1111
import vueJsx from '@vitejs/plugin-vue-jsx'
12+
import VueInspector from 'vite-plugin-vue-inspector'
1213

1314
import PKG from './package.json'
1415

@@ -26,6 +27,15 @@ export default ({ mode }) => {
2627
vueJsx(),
2728
tsconfigPaths(),
2829

30+
...(isDev
31+
? [
32+
VueInspector({
33+
toggleButtonVisibility: 'always',
34+
launchEditor: 'cursor',
35+
}),
36+
]
37+
: []),
38+
2939
checker({
3040
enableBuild: true,
3141
}),

0 commit comments

Comments
 (0)