Stav Alfi
1 min readMay 20, 2019

If you try to generate d.ts files, they will still have invalid absolute paths. To fix that I created a (https://github.com/stavalfi/babel-plugin-module-resolver-loader) 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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response