summaryrefslogtreecommitdiff
path: root/.changeset/chatty-planes-bathe.md
blob: 726c6782f3b3484380e0f66c7ebe642e46b39ae1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---
'@astrojs/svelte': major
'astro': minor
---

The fallback Svelte preprocessor will only be applied if a custom `preprocess` option is not passed to the `svelte()` integration option, or in the `svelte.config.js` file.

To support IDE autocompletion, or if you're migrating from `@astrojs/svelte` v1, you can create a `svelte.config.js` file with:

```js
import { vitePreprocess } from '@astrojs/svelte';

export default {
	preprocess: vitePreprocess(),
};
```

This file will also be generated by `astro add svelte` by default.