diff --git a/docs/modules/ROOT/pages/web-frameworks.adoc b/docs/modules/ROOT/pages/web-frameworks.adoc index 59f835be..4a3e72a3 100644 --- a/docs/modules/ROOT/pages/web-frameworks.adoc +++ b/docs/modules/ROOT/pages/web-frameworks.adoc @@ -255,8 +255,13 @@ Configure `svelte.config.js` file with the following changes: [source,javascript] ---- import adapter from '@sveltejs/adapter-static'; + +// In projects using Sveltekit v1 import { vitePreprocess } from '@sveltejs/kit/vite'; +// In projects using SvelteKit v2 +import { vitePreprocess } from '@sveltejs/vite-plugin-svelte' + /** @type {import('@sveltejs/kit').Config} */ const config = { preprocess: vitePreprocess(),