Skip to content

Commit

Permalink
chore: use inspect instead of devtools in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Dec 4, 2024
1 parent f04ee6a commit dda00b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions playground/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import VueRouter from '../src/vite'
import { VueRouterAutoImports } from '../src'
import Vue from '@vitejs/plugin-vue'
import AutoImport from 'unplugin-auto-import/vite'
import VueDevtools from 'vite-plugin-vue-devtools'
import Inspect from 'vite-plugin-inspect'

export default defineConfig({
clearScreen: false,
Expand Down Expand Up @@ -50,7 +50,7 @@ export default defineConfig({
autoExportsDataLoaders: ['src/loaders/**/*', '@/loaders/**/*'],
},
extendRoute(route) {
route.params.forEach((param, i) => {
route.params.forEach((param) => {
// transform kebab-case to camelCase
param.paramName = param.paramName.replace(/-([a-z])/g, (g) =>
g[1].toUpperCase()
Expand Down Expand Up @@ -157,6 +157,9 @@ export default defineConfig({
},
],
}),
VueDevtools(),
// currently the devtools use 0.8.8 but we care more about
// inspecting virtual files
// VueDevtools(),
Inspect(),
],
})

0 comments on commit dda00b4

Please sign in to comment.