Skip to content

Commit

Permalink
fix(svelte): update add_snippet_symbol import
Browse files Browse the repository at this point in the history
  • Loading branch information
mass8326 committed May 28, 2024
1 parent 2d93902 commit fc3ea5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lovely-kids-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astrojs/svelte": patch
---

Support internal breaking changes in [email protected]
2 changes: 1 addition & 1 deletion packages/integrations/svelte/client-v5.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { hydrate, mount, unmount } from 'svelte';
import { add_snippet_symbol } from 'svelte/internal/client';
import { add_snippet_symbol } from 'svelte/internal/server';

// Allow a slot to be rendered as a snippet (dev validation only)
const tagSlotAsSnippet = import.meta.env.DEV ? add_snippet_symbol : (s) => s;
Expand Down

0 comments on commit fc3ea5d

Please sign in to comment.