Skip to content

Commit

Permalink
docs: Update sveltekit.mdx (#1844)
Browse files Browse the repository at this point in the history
SvelteKit no longer re-exports vitePreprocess. You should import it directly from @sveltejs/vite-plugin-svelte.
  • Loading branch information
NC-PB authored Feb 8, 2024
1 parent 3a4fe43 commit 1b7e1d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/getting-started/setup/sveltekit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Then update the `adapter` import in the `svelte.config.js` file:
```javascript title=svelte.config.js
// highlight-next-line
import adapter from '@sveltejs/adapter-static' // This was changed from adapter-auto
import { vitePreprocess } from '@sveltejs/kit/vite'
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'

/** @type {import('@sveltejs/kit').Config} */
const config = {
Expand Down

0 comments on commit 1b7e1d7

Please sign in to comment.