You just have to import viteProcess from @sveltejs/vite-plugin-svelte.
viteProcess
@sveltejs/vite-plugin-svelte