$ npm install @vitejs/devtools-self-inspectA Vite DevTools plugin for inspecting the DevTools itself. Useful when developing or debugging DevTools plugins built with @vitejs/devtools-kit.
pnpm add -D @vitejs/devtools-self-inspect
Add the plugin to your Vite config:
import { DevToolsSelfInspect } from '@vitejs/devtools-self-inspect'
// vite.config.ts
import { defineConfig } from 'vite'
export default defineConfig({
devtools: true,
plugins: [
DevToolsSelfInspect(),
],
})
A "Self Inspect" panel will appear in the DevTools dock, giving you a live view of the registered RPC functions, docks, client scripts, and DevTools-enabled plugins.