Skip to content

Commit 143dbf9

Browse files
authored
docs: update vitePreprocess section for Svelte 5 (#13011)
1 parent 435984b commit 143dbf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

documentation/docs/60-appendix/20-integrations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: Integrations
44

55
## `vitePreprocess`
66

7-
Including [`vitePreprocess`](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md) in your project will allow you to use the various flavors of JS and CSS that Vite supports: TypeScript, PostCSS, SCSS, Less, Stylus, and SugarSS. If you set your project up with TypeScript it will be included by default:
7+
Including [`vitePreprocess`](https://github.com/sveltejs/vite-plugin-svelte/blob/main/docs/preprocess.md) in your project will allow you to use the various flavors of CSS that Vite supports: PostCSS, SCSS, Less, Stylus, and SugarSS. If you set your project up with TypeScript it will be included by default:
88

99
```js
1010
// svelte.config.js
@@ -15,6 +15,8 @@ export default {
1515
};
1616
```
1717

18+
You will also need to use a preprocessor if you're using TypeScript with Svelte 4. TypeScript is supported natively in Svelte 5 if you're using only the type syntax. To use more complex TypeScript syntax in Svelte 5, you will need still need a preprocessor and can use `vitePreprocess({ script: true })`.
19+
1820
## Adders
1921

2022
Run `npx sv add` to setup many different complex integrations with a single command including:

0 commit comments

Comments
 (0)