aleclarson / vite-tsconfig-paths

Support for TypeScript's path mapping in Vite
MIT License
1.28k stars 45 forks source link

Question: could baseUrl be supported? #14

Closed yann-combarnous closed 3 years ago

yann-combarnous commented 3 years ago

Hi,

We are using this setup in CRA for absolute paths: https://medium.com/@mikecripps/absolute-imports-with-create-react-app-d70fb65ea012

This is kind of blocking us atm when testing viteJs. Do you think it could be supported in this plugin?

aleclarson commented 3 years ago

Yeah, I'm open to supporting that.

PR welcome, or I'll do it if you sponsor me on Github. :)

aleclarson commented 3 years ago

Lucky you. I needed this, so now you have it!

Released in v3.1.0

yann-combarnous commented 3 years ago

Sorry, forgot to answer your initial comment. I was doing an initial discovery with Vite, so would have considered adding a PR later this year. Thx for the addition.