8000 docs: update import for SvelteKit 2 (#13091) · sveltejs/svelte@42c217f · GitHub
[go: up one dir, main page]

Skip to content

Commit 42c217f

Browse files
authored
docs: update import for SvelteKit 2 (#13091)
code is the same between snippets now, therefore remove one of them
1 parent d2b012d commit 42c217f

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

documentation/docs/05-misc/03-typescript.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@ To use TypeScript within Svelte components, you need to add a preprocessor that
1212

1313
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.
1414

15-
```ts
16-
/// file: svelte.config.js
17-
// @noErrors
18-
import { vitePreprocess } from '@sveltejs/kit/vite';
19-
20-
const config = {
21-
preprocess: vitePreprocess()
22-
};
23-
24-
export default config;
25-
```
26-
2715
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.
2816

2917
```ts

0 commit comments

Comments
 (0)
0