Refactor Svelte preprocess integration handling (#5901)

* Let user setup vitePreprocess

* Abstract function

* Add changeset

* Update svelte syntax

* Make fallback

* Fix docs

* Update changeset

* Fix types
This commit is contained in:
Bjorn Lu
2023-01-19 21:13:40 +08:00
committed by GitHub
parent 899214298c
commit a342a486c2
5 changed files with 153 additions and 47 deletions

View File

@ -0,0 +1,5 @@
import { vitePreprocess } from '@astrojs/svelte';
export default {
preprocess: vitePreprocess(),
};