From 0c4ed3d03f35f453f66b3d99ccfb2421fc0a3896 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sat, 17 Feb 2024 16:46:40 +0000 Subject: [PATCH] Enable support for import aliases in typescript code --- web/tsconfig.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/web/tsconfig.json b/web/tsconfig.json index 77da9dd..1a92f19 100644 --- a/web/tsconfig.json +++ b/web/tsconfig.json @@ -1,3 +1,11 @@ { - "extends": "astro/tsconfigs/strict" -} \ No newline at end of file + "extends": "astro/tsconfigs/strict", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@components/*": ["src/components/*"], + "@layouts/*": ["src/layouts/*"], + "@utils/*": ["src/utils/*"] + } + } +}