Resolve imports/requires alias according to tsconfig paths. It tries use more resources provided by Node.js, like, asynchronous methods, paralelism and a simple memory cache.
Just run:
npm install --save-dev @diegovictor/tsc-path-replacer
Or simply:
yarn add -D @diegovictor/tsc-path-replacer
Register on your build script:
"scripts": {
"build": "tsc --project tsconfig.json && tsc-path-replacer tsconfig.json",
}