tsconfig-paths icon indicating copy to clipboard operation
tsconfig-paths copied to clipboard

Simple solution to enable absolute paths in tsconfig

Open gmhispagnol opened this issue 5 years ago • 0 comments

Absolute paths in tsconfig are used to make aliases to external folders, but tsconfig-paths always try to make paths absolute even when they already are. Simple fix:

mapping-entry.ts getAbsoluteMappingEntries(){ ... return path.isAbsolute(pathToResolve) ? pathToResolve : path.join(absoluteBaseUrl, pathToResolve); }

gmhispagnol avatar Dec 12 '19 15:12 gmhispagnol