import { sveltekit } from '@sveltejs/kit/vite'; import { defineConfig } from 'vite'; export default defineConfig({ plugins: [sveltekit()], server: { host: '0.0.0.0', port: 5173, // SvelteKit excludes build output itself, but must watch generated route modules. // Ignoring all of .svelte-kit leaves cached page imports pointing at old route IDs. // Plugin verification output contains complete project copies, including tsconfigs. // Watching them also triggers unrelated TypeScript cache resets and full reloads. watch: { usePolling: process.env.WATCH_USE_POLLING === 'true', interval: 1000, ignored: ['**/output/**', '**/pages-dist/**', '**/offline-dist/**', '**/plugin-dist/**', '**/release/**'] } } });