Closed tsanyqudsi closed 2 years ago
Hey there!
So this Issue basically ties into the already requested feature here: https://github.com/Subwaytime/vite-aliases/pull/30.
I am currently rewriting the config generation in total and add some additional features that are missing from the configs.
For Vue Users, i am working on integrating a better support for volar
and vetur
.
As for other Frameworks, i am not sure if there is something similiar for react and svelte, as i have never used these frameworks.
TLDR: This Issue will be resolved in the upcoming Version and some other Config Issues that currently exist.
fixed with v0.8.7. Note: its just a quick fix and will changed in v0.9.0
!
let say we have a structure like this :
vite-aliases would generate
The import works fine of course, but things got problems when you're adding index.ts / index.js for each structure. for example :
We can't import things like
@components
and / or@libraries
because tsconfig / jsconfig demand the exact file name for the component / library we want to import. for example :