From 983ac541ad3555085e044933bd37160bc05cc0dd Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Wed, 19 Apr 2023 21:13:37 +0100 Subject: [PATCH] Configures a file import alias for ./src --- svelte.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/svelte.config.js b/svelte.config.js index 1cf26a0..6021b0c 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -11,7 +11,10 @@ const config = { // 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. // See https://kit.svelte.dev/docs/adapters for more information about adapters. - adapter: adapter() + adapter: adapter(), + alias: { + '$src/*': 'src/*', + }, } };