Typescript support
ksckaan1 opened this issue · 1 comments
ksckaan1 commented
how can i use typescript in .svelte files?
ksckaan1 commented
Alright, i found it.
https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md
// svelte.config.js
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
export default {
preprocess: [vitePreprocess()]
};