diff --git a/src/config-loader.ts b/src/config-loader.ts index a09eab0..8e81199 100644 --- a/src/config-loader.ts +++ b/src/config-loader.ts @@ -30,7 +30,6 @@ export function configLoader({ }: ConfigLoaderParams): ConfigLoaderSuccessResult | ConfigLoaderFailResult { if (explicitParams) { - const absoluteBaseUrl = path.isAbsolute(explicitParams.baseUrl) ? explicitParams.baseUrl : path.join(cwd, explicitParams.baseUrl); diff --git a/src/register.ts b/src/register.ts index 43713b9..b167fec 100644 --- a/src/register.ts +++ b/src/register.ts @@ -11,7 +11,8 @@ export function register(explicitParams: ExplicitParams) { }); if (configLoaderResult.resultType === "failed") { - throw new Error(configLoaderResult.message); + console.warn(`${configLoaderResult.message}. tsconfig-paths will be skipped`); + return; } const matchPath = createMatchPath(