In SvelteKit projects, SvelteKit wraps around Vite.
This example is for configuring path aliases, but you get the idea. There's a kit.vite
property in svelte.config.js
, and you'd configure vite through there.
https://kit.svelte.dev/faq#aliases
Vite's plugins should be API-compatible with Rollup, to my understanding.