Files
LaDOSE/LaDOSE.Src/LaDOSE.WebApp/vite.config.ts
T
darkstack f934e69c90
Build App / Build (push) Failing after 2s
Fix code smells
2026-08-07 13:22:53 +02:00

30 lines
986 B
TypeScript

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'
}
});