From 1fec36dfc685958d56400d9b5575efc4d5be549b Mon Sep 17 00:00:00 2001 From: fecqs <466712071@qq.com> Date: Sun, 25 Apr 2021 00:32:50 +0800 Subject: [PATCH] Update tsconfig-loader.ts (#161) base will always be true, so I think it should be deleted --- src/tsconfig-loader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tsconfig-loader.ts b/src/tsconfig-loader.ts index d3e7bba..7ab4e42 100644 --- a/src/tsconfig-loader.ts +++ b/src/tsconfig-loader.ts @@ -131,7 +131,7 @@ export function loadTsconfig( // baseUrl should be interpreted as relative to the base tsconfig, // but we need to update it so it is relative to the original tsconfig being loaded - if (base && base.compilerOptions && base.compilerOptions.baseUrl) { + if (base.compilerOptions && base.compilerOptions.baseUrl) { const extendsDir = path.dirname(extendedConfig); base.compilerOptions.baseUrl = path.join( extendsDir,