ricokahler / babel-plugin-tsconfig-paths-module-resolver

Use tsconfig-paths in any bundler that supports a custom babel config.
MIT License
40 stars 2 forks source link

Remove the need for baseUrl in tsconfig.json #40

Open lorefnon opened 9 months ago

lorefnon commented 9 months ago

Hello, thanks for creating and open sourcing this plugin.

This plugin seems to require baseUrl config to be present in tsconfig.json. However, the typescript docs now don't recommend setting it. From tsconfig docs:

This feature was designed for use in conjunction with AMD module loaders in the browser, and is not recommended in any other context. As of TypeScript 4.1, baseUrl is no longer required to be set when using paths.

It would be good if the baseUrl requirement was relaxed in this plugin too.