From 7c8a16e003a83975594dfdd7bd841b3f13c61783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=A4sman?= Date: Sat, 10 Apr 2021 19:37:28 +0300 Subject: [PATCH] Fix `@` alias --- tsconfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index db189ca..4d1718d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,7 +9,11 @@ "resolveJsonModule": true, "esModuleInterop": true, "lib": ["esnext", "dom"], - "types": ["vite/client", "vite-plugin-pwa/client"] + "types": ["vite/client", "vite-plugin-pwa/client"], + "baseUrl": ".", + "paths": { + "@/*": ["src/*"] + } }, "include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue"] }