From 346ebd5ee909e57b5aba25bc2406311e0d824ce3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aaron=20D=C3=B6tsch?= <aaron@fsmpi.rwth-aachen.de> Date: Fri, 4 Aug 2023 02:43:07 +0200 Subject: [PATCH] Add vite preprocessor to allow TypeScript --- svelte.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index be9e601..ee17f75 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,4 +1,5 @@ import adapter from '@sveltejs/adapter-node'; +import { vitePreprocess } from '@sveltejs/kit/vite'; import { importAssets } from 'svelte-preprocess-import-assets'; /** @type {import('@sveltejs/kit').Config} */ @@ -10,7 +11,8 @@ const config = { } }, preprocess: [ - importAssets() + importAssets(), + vitePreprocess() ] }; -- GitLab