chore(setup): configure svelte

This commit is contained in:
peaklabs-dev 2025-12-15 23:43:19 +01:00
parent 3a8e2180e4
commit 40a599a06e
No known key found for this signature in database

20
svelte.config.ts Normal file
View file

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