Due to the fact that all those options have limitations/not maintained anymore, I created a babel-plugin-module-resolver-loader (Webpack4+) that runs babel-plugin-module-resolver internally. You can safely run this , then ts-loader and then babel-loader to have valid d.ts files (using babel-plugin-module-resolver to transform every path to relative and then ts-loader to produce d.ts files) +babel-loader