diff options
author | 2023-11-17 22:02:05 +0800 | |
---|---|---|
committer | 2023-11-17 22:02:05 +0800 | |
commit | 1c48ed286538ab9e354eca4e4dcd7c6385c96721 (patch) | |
tree | 0e240fda3dbc1202ecd0507773ad4d29084e936b /packages/integrations/svelte/src | |
parent | cd0878751857ba38a833fa77d81ed3a2f6998e2f (diff) | |
download | astro-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.ts | 1 |
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(); } |