Skip to content

Commit

Permalink
Fix Svelte 5 slots
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jul 18, 2024
1 parent 5e4a463 commit daefd57
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 95 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-carpets-doubt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/svelte': minor
---

Bumps Svelte 5 peer dependency to `^5.0.0-next.190` and support the latest slots/snippets API
6 changes: 0 additions & 6 deletions examples/framework-svelte/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,4 @@ import svelte from '@astrojs/svelte';
export default defineConfig({
// Enable Svelte to support Svelte components.
integrations: [svelte()],
devToolbar: { enabled: false },
vite: {
optimizeDeps: {
force: true,
},
},
});
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@
},
"overrides": {
"organize-imports-cli>ts-morph": "^19.0.0",
"tsconfig-resolver>type-fest": "3.0.0",
"svelte": "link:../svelte/packages/svelte"
"tsconfig-resolver>type-fest": "3.0.0"
},
"peerDependencyRules": {
"ignoreMissing": [
Expand Down
2 changes: 1 addition & 1 deletion packages/integrations/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
},
"peerDependencies": {
"astro": "^4.0.0",
"svelte": "^4.0.0 || ^5.0.0-next.90",
"svelte": "^4.0.0 || ^5.0.0-next.190",
"typescript": "^5.3.3"
},
"engines": {
Expand Down
Loading

0 comments on commit daefd57

Please sign in to comment.