From 48fce99f509ebd9f2dd422487162c3e96cc9f2b5 Mon Sep 17 00:00:00 2001 From: DanikVitek Date: Fri, 2 May 2025 14:11:24 +0300 Subject: [PATCH] Enable Svelte component inspector `Alt+X` to go to the component, selected in web UI --- src/frontend/svelte.config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/frontend/svelte.config.js b/src/frontend/svelte.config.js index 3d54db4..c750e15 100644 --- a/src/frontend/svelte.config.js +++ b/src/frontend/svelte.config.js @@ -2,7 +2,7 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; import adapter from "@sveltejs/adapter-static"; /** @type {import('@sveltejs/kit').Config} */ -const config = { +export default { kit: { // adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list. // If your environment is not supported or you settled on a specific environment, switch out the adapter. @@ -11,6 +11,7 @@ const config = { }, preprocess: [vitePreprocess({})], + vitePlugin: { + inspector: true, + }, }; - -export default config;