Improve TypeScript support

This commit is contained in:
Luca Bosin
2023-08-25 16:48:27 +02:00
parent 5ecaa5560d
commit e8b11c7718
6 changed files with 46 additions and 3137 deletions

View File

@ -1,7 +1,12 @@
import adapter from '@sveltejs/adapter-node';
import adapter from '@sveltejs/adapter-auto';
import { vitePreprocess } from '@sveltejs/kit/vite';
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
// for more information about preprocessors
preprocess: vitePreprocess(),
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.