From 2f07bfb904408038a79e91e399990d2e387d91ae Mon Sep 17 00:00:00 2001 From: Sidney Alcantara Date: Sun, 22 Sep 2019 22:13:39 +1000 Subject: [PATCH] add baseUrl to tsconfig for non-relative imports --- tsconfig.json | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index f2850b71..fa6b7e23 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "esModuleInterop": true, @@ -17,9 +13,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "react" + "jsx": "react", + "baseUrl": "src" }, - "include": [ - "src" - ] + "include": ["src"] }