From 481eb218d8ed6068c27c6e7c14da62f464763b9c Mon Sep 17 00:00:00 2001 From: Lordfirespeed <28568841+Lordfirespeed@users.noreply.github.com> Date: Tue, 16 Jul 2024 11:46:24 +0100 Subject: [PATCH] tooling: use `Bundler` module resolution, add "@/" path alias --- tsconfig.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index af70df7..e948269 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,7 +4,7 @@ "target": "ES2020", "esModuleInterop": true, "noImplicitAny": true, - "moduleResolution": "node", + "moduleResolution": "Bundler", "sourceMap": false, "baseUrl": ".", "strictNullChecks": true, @@ -12,7 +12,9 @@ "declaration": false, "removeComments": true, "allowSyntheticDefaultImports": true, - "paths": {} + "paths": { + "@/*": ["./src/*"] + } }, "include": ["**/*.ts"], "exclude": ["node_modules", "dist"]