import adapter from '@sveltejs/adapter-static'; import { sveltekit } from '@sveltejs/kit/vite'; import tailwindcss from '@tailwindcss/vite'; import { defineConfig } from 'vitest/config'; export default defineConfig({ plugins: [ tailwindcss(), sveltekit({ compilerOptions: { // Force runes mode for the project, except for libraries. Can be removed in svelte 6. runes: ({ filename }) => filename.split(/[/\\]/).includes('node_modules') ? undefined : true }, // This app is a pure client for LaDOSE.Api, so it ships as a static SPA. // `fallback` hands every unknown path to the client-side router. adapter: adapter({ fallback: 'index.html' }) }) ], test: { // The pure modules only — `$lib/statistics`, `$lib/tournaments` and the small // helpers beside them. Everything under `ui/` or `routes/` needs a component // harness, which this project deliberately does not have yet. include: ['src/**/*.test.ts'], environment: 'node' } });