Closed mirzaahmedov closed 1 year ago
svelte-preprocess
doesn't use Vite aliases by default. They are two independent tools so the alias info isn't passed to svelte-preprocess
. You need to manually setup aliases for svelte-preprocess
like https://github.com/sveltejs/svelte-preprocess/issues/97#issuecomment-551842456. Or you can try vite-plugin-svelte
's experimetal.useVitePreprocess
option.
svelte-preprocess
doesn't use Vite aliases by default. They are two independent tools so the alias info isn't passed tosvelte-preprocess
. You need to manually setup aliases forsvelte-preprocess
like https://github.com/sveltejs/svelte-preprocess/issues/97#issuecomment-551842456. Or you can tryvite-plugin-svelte
'sexperimetal.useVitePreprocess
option.
It works! But it is a very bad developer experience. I have to specify my aliases in three different places
Would be great if you could add option to use aliases from jsconfig.js or vite.config.js
Describe the bug vite aliases not working with sass imports
vite.config.js
Logs
To Reproduce github repo
Occasionally, this won't be possible, and that's fine – we still appreciate you raising the issue. But please understand that
svelte-preprocess
is run by unpaid volunteers in their free time, and issues that follow these instructions will get fixed faster.Information about your project:
Brave 1.41.96
archlinux
svelte-preprocess^4.10.7
Rollup