devtools
Vite DevTools provides an in-page development dock. The add-on also installs Svelte DevTools, which adds Svelte component, reactivity, routing, and performance inspection to the dock.
Usage
npx sv add devtoolsWhat you get
@vitejs/devtools, the selected inspection tools, and@sveltejs/vite-devtools-svelteinstalled as development dependencies- both plugins added to your Vite config in the required order
- client authentication explicitly enabled in the Vite DevTools config (set
clientAuthtofalseto disable it) - Svelte inspection panels in the Vite DevTools dock
- direct access to the Svelte panels at
/.svelte-devtools/ - an MCP endpoint for development-time Svelte diagnostics
Options
plugins
Which Vite DevTools plugins to install:
vitestrolldownviteoxc
Vitest, Rolldown, and Vite are selected by default.
npx sv add devtools="plugins:vitest,oxc,rolldown,vite"Edit this page on GitHub llms.txt
previous next