Sveltekit custom pathing
How to set up custom pathing in sveltekit
Set up custom pathing
If you want to use $ts/file.svelte
instead of ../../ts/file.svelte
const config = {
kit: {
alias: {
"$ts": "./src/ts"
}
}
};
Usage:
import Button from '$ts/Button.svelte';