chore(setup): configure svelte

This commit is contained in:
peaklabs-dev 2025-12-15 23:43:19 +01:00
parent dbb9634386
commit 26a4244095
No known key found for this signature in database

23
svelte.config.ts Normal file
View file

@ -0,0 +1,23 @@
import { vitePreprocess, type SvelteConfig } from '@sveltejs/vite-plugin-svelte';
const config: SvelteConfig = {
preprocess: vitePreprocess(),
compilerOptions: {
// TODO: Enforce runes mode on all files once Inertia v3 https://github.com/inertiajs/inertia/tree/3.x is released
// runes: true,
discloseVersion: false,
modernAst: true,
dev: true,
experimental: {
async: true,
}
},
vitePlugin: {
inspector: {
showToggleButton: 'always',
toggleButtonPos: 'top-right'
}
}
};
export default config;