summaryrefslogtreecommitdiff
path: root/packages/integrations/svelte/src
diff options
context:
space:
mode:
authorGravatar Bjorn Lu <bjornlu.dev@gmail.com> 2023-11-17 22:02:05 +0800
committerGravatar GitHub <noreply@github.com> 2023-11-17 22:02:05 +0800
commit1c48ed286538ab9e354eca4e4dcd7c6385c96721 (patch)
tree0e240fda3dbc1202ecd0507773ad4d29084e936b /packages/integrations/svelte/src
parentcd0878751857ba38a833fa77d81ed3a2f6998e2f (diff)
downloadastro-1c48ed286538ab9e354eca4e4dcd7c6385c96721.tar.gz
astro-1c48ed286538ab9e354eca4e4dcd7c6385c96721.tar.zst
astro-1c48ed286538ab9e354eca4e4dcd7c6385c96721.zip
Support Vite 5 (#9122)
Diffstat (limited to 'packages/integrations/svelte/src')
-rw-r--r--packages/integrations/svelte/src/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/integrations/svelte/src/index.ts b/packages/integrations/svelte/src/index.ts
index 695214223..b894ee623 100644
--- a/packages/integrations/svelte/src/index.ts
+++ b/packages/integrations/svelte/src/index.ts
@@ -73,6 +73,7 @@ async function getViteConfiguration({
}
if (!resolvedOptions.preprocess && !(await svelteConfigHasPreprocess(root))) {
+ // @ts-expect-error there's a bug with the types where the first arg should be optional
resolvedOptions.preprocess = vitePreprocess();
}