Skip to main content

@sveltejs/kit/vite

import { function sveltekit(): Promise<Plugin[]>

Returns the SvelteKit Vite plugins.

sveltekit
} from '@sveltejs/kit/vite';

sveltekit

Returns the SvelteKit Vite plugins. Any options that don't belong to SvelteKit are passed through to vite-plugin-svelte.

Since version 3.0.0 you must pass configuration directly.

Since version 2.62.0 you can pass configuration directly, in which case svelte.config.js is ignored.

function sveltekit(
	config?: KitConfig &
		Omit<Options, 'onwarn'> &
		Pick<SvelteConfig, 'vitePlugin'>
): Promise<Plugin[]>;

Edit this page on GitHub llms.txt