svelte-intellisense icon indicating copy to clipboard operation
svelte-intellisense copied to clipboard

Vite path alias support ?

Open vexkiddy opened this issue 2 years ago • 1 comments

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 avatar Jan 02 '23 21:01 vexkiddy

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

vexkiddy avatar Jan 02 '23 22:01 vexkiddy