From 42d938aa449dc9899bce0c411b74b3a53c5ef138 Mon Sep 17 00:00:00 2001 From: pheralb Date: Thu, 21 Aug 2025 10:53:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Add=20custom=20ts=20ali?= =?UTF-8?q?as?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- svelte.config.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/svelte.config.js b/svelte.config.js index aa6f576..aba205b 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -4,16 +4,15 @@ import { vitePreprocess } from "@sveltejs/vite-plugin-svelte"; /** @type {import('@sveltejs/kit').Config} */ const config = { - // Consult https://svelte.dev/docs/kit/integrations - // for more information about preprocessors + extensions: [".svelte", ".svx"], preprocess: [vitePreprocess(), mdsvex()], kit: { - // adapter-auto only supports some environments, see https://svelte.dev/docs/kit/adapter-auto for a list. - // If your environment is not supported, or you settled on a specific environment, switch out the adapter. - // See https://svelte.dev/docs/kit/adapters for more information about adapters. adapter: adapter(), + alias: { + "@/*": "./src/*", + "@/lib/*": "./src/lib/*", + }, }, - extensions: [".svelte", ".svx"], }; export default config;