From 86ee50e7166e6db5e6a2ca40c2f5d5c8c846f49d Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Thu, 8 Sep 2022 21:13:03 +0630 Subject: [PATCH] Add import aliases --- tsconfig.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 77da9dd..02ac835 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,3 +1,11 @@ { - "extends": "astro/tsconfigs/strict" -} \ No newline at end of file + "extends": "astro/tsconfigs/strict", + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@layouts/*": ["src/layouts/*"], + "@components/*": ["src/components/*"], + "@assets/*": ["src/assets/*"] + } + } +}