Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vite path alias support ? #54

Open
vexkiddy opened this issue Jan 2, 2023 · 1 comment
Open

Vite path alias support ? #54

vexkiddy opened this issue Jan 2, 2023 · 1 comment

Comments

@vexkiddy
Copy link

vexkiddy commented Jan 2, 2023

Would it be possible to add Vite path alias support ?

eg. the plugin will work great using this...
import Primary from "../buttons/Primary.svelte";

however it doesn't when using vite path alias
import Primary from "@buttons/Primary.svelte";

❤️

@vexkiddy vexkiddy changed the title Plugin not working correctly ? Vite path alias support ? Jan 2, 2023
@vexkiddy
Copy link
Author

vexkiddy commented Jan 2, 2023

I've managed to get it working using jsconfig.json as proposed by another user, however now i have two places where i have to manage my paths. Would be great to just have a the vite.config.js file with the alias' be picked up by the extension :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant