oslabs-beta / ReacTree

ReacTree - VS Code extension that generates a hierarchy tree of React components with each node listing the passed down props, indicating whether it's connected the Redux store, and guiding you to the associated file with the click of a button
https://reactree.dev/
MIT License
149 stars 31 forks source link

Absolute imports #30

Open webdiego opened 1 year ago

webdiego commented 1 year ago

Hey people, the extension looks very nice! I had just a problem...I cannot fully use it because, in most of my projects, I use absolute imports ("@/..."), and like this, I am not able to use it

MichaelBenliyan commented 1 year ago

Hey Diego! Thank you for bringing this to our attention. Another user pointed this out as well and this is definitely something we hope to support. I cannot give you a timetable on this addition, however, I can update this thread once absolute imports are supported. Thanks again for such a good suggestion. Best

webdiego commented 1 year ago

Thank you for your effort; super nice idea! :)

dcjones1 commented 1 year ago

Following along, I have a similar issue using absolute imports with a base URL set in tsconfig. The base URL is './src' so an import from 'src/components/Button.tsx' will be 'components/Button.tsx'. Otherwise, the extension is awesome, thanks for your efforts!