docs: update import for SvelteKit 2 (#13091)

code is the same between snippets now, therefore remove one of them
pull/13120/head
Mirwaisse 6 months ago committed by GitHub
parent d2b012db74
commit 42c217f08c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -12,18 +12,6 @@ To use TypeScript within Svelte components, you need to add a preprocessor that
The easiest way to get started is scaffolding a new SvelteKit project by typing `npm create svelte@latest`, following the prompts and choosing the TypeScript option.
```ts
/// file: svelte.config.js
// @noErrors
import { vitePreprocess } from '@sveltejs/kit/vite';
const config = {
preprocess: vitePreprocess()
};
export default config;
```
If you don't need or want all the features SvelteKit has to offer, you can scaffold a Svelte-flavoured Vite project instead by typing `npm create vite@latest` and selecting the `svelte-ts` option.
```ts

Loading…
Cancel
Save