Skip to content

Commit

Permalink
fix: fix to vuejs#736 by update "vite-plugin-inspect"
Browse files Browse the repository at this point in the history
  • Loading branch information
陆德靖 authored and 陆德靖 committed Dec 22, 2024
1 parent a9c56bd commit fb77993
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 34 deletions.
1 change: 0 additions & 1 deletion packages/playground/applet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"typescript": "^5.7.2",
"unocss": "^0.64.1",
"vite": "^6.0.1",
"vite-plugin-inspect": "~0.8.9",
"vite-plugin-vue-devtools": "workspace:*"
}
}
1 change: 0 additions & 1 deletion packages/playground/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"typescript": "^5.7.2",
"unocss": "^0.64.1",
"vite": "^6.0.1",
"vite-plugin-inspect": "~0.8.9",
"vite-plugin-vue-devtools": "workspace:*"
}
}
2 changes: 0 additions & 2 deletions packages/playground/basic/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import Unocss from 'unocss/vite'
import AutoImport from 'unplugin-auto-import/vite'
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
import { defineConfig } from 'vite'
import inspect from 'vite-plugin-inspect'
import VueDevTools from 'vite-plugin-vue-devtools'
// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -30,7 +29,6 @@ export default defineConfig({
],
resolvers: [ElementPlusResolver()],
}),
inspect(),
],
server: {
port: 3000,
Expand Down
1 change: 0 additions & 1 deletion packages/playground/multi-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"typescript": "^5.7.2",
"unocss": "^0.64.1",
"vite": "^6.0.1",
"vite-plugin-inspect": "~0.8.9",
"vite-plugin-vue-devtools": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@vue/devtools-shared": "workspace:^",
"execa": "^9.5.1",
"sirv": "^3.0.0",
"vite-plugin-inspect": "~0.8.9",
"vite-plugin-inspect": "~0.10.5",
"vite-plugin-vue-inspector": "^5.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/rpc/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ResolvedConfig, ViteDevServer } from 'vite'
import { ViteInspectAPI } from 'vite-plugin-inspect/index'
import { ViteInspectAPI } from 'vite-plugin-inspect'

export interface RpcFunctionCtx {
rpc: ViteInspectAPI['rpc']
Expand Down
1 change: 1 addition & 0 deletions packages/vite/src/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default function VitePluginVueDevTools(options?: VitePluginVueDevToolsOpt
const vueDevtoolsPath = getVueDevtoolsPath()
const inspect = Inspect({
silent: true,
embedded: true,
})

const pluginOptions = mergeOptions(options ?? {})
Expand Down
103 changes: 76 additions & 27 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

0 comments on commit fb77993

Please sign in to comment.