summaryrefslogtreecommitdiff
path: root/packages/integrations/svelte
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
parentcd0878751857ba38a833fa77d81ed3a2f6998e2f (diff)
downloadastro-1c48ed286538ab9e354eca4e4dcd7c6385c96721.tar.gz
astro-1c48ed286538ab9e354eca4e4dcd7c6385c96721.tar.zst
astro-1c48ed286538ab9e354eca4e4dcd7c6385c96721.zip
Support Vite 5 (#9122)
Diffstat (limited to 'packages/integrations/svelte')
-rw-r--r--packages/integrations/svelte/package.json6
-rw-r--r--packages/integrations/svelte/src/index.ts1
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/integrations/svelte/package.json b/packages/integrations/svelte/package.json
index 4c7e8bb63..a29a87ffb 100644
--- a/packages/integrations/svelte/package.json
+++ b/packages/integrations/svelte/package.json
@@ -42,18 +42,18 @@
"dev": "astro-scripts dev \"src/**/*.ts\""
},
"dependencies": {
- "@sveltejs/vite-plugin-svelte": "^2.5.2",
+ "@sveltejs/vite-plugin-svelte": "^3.0.0",
"svelte2tsx": "^0.6.20"
},
"devDependencies": {
"astro": "workspace:*",
"astro-scripts": "workspace:*",
"svelte": "^4.2.0",
- "vite": "^4.4.9"
+ "vite": "^5.0.0"
},
"peerDependencies": {
"astro": "^3.0.0",
- "svelte": "^3.55.0 || ^4.0.0 || ^5.0.0-next.1"
+ "svelte": "^4.0.0 || ^5.0.0-next.1"
},
"engines": {
"node": ">=18.14.1"
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();
}