Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(vite): use embedded mode on vite-plugin-inspect page #753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading