ArdenIvanov / svelte-intellisense

VSCode extension for intellisense for data, events, slots etc. in components.
58 stars 5 forks source link

Vite path alias support ? #54

Open vexkiddy opened 1 year ago

vexkiddy commented 1 year ago

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 commented 1 year ago

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