nichady/golte

Typescript support

ksckaan1 opened this issue · 1 comments

how can i use typescript in .svelte files?

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()]
};