Skip to content

Commit

Permalink
Update web-frameworks.adoc (#638)
Browse files Browse the repository at this point in the history
In Sveltekit v2 vite-plugin-svelte is added as a co-dependency and preprocessor is removed from Sveltekit v2, see:

https://kit.svelte.dev/docs/migrating-to-sveltekit-2#vitepreprocess-is-no-longer-exported-from-sveltejs-kit-vite
  • Loading branch information
trpouh authored Feb 11, 2024
1 parent a5f97bc commit c56e0e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/modules/ROOT/pages/web-frameworks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit c56e0e9

Please sign in to comment.