Skip to content

Commit

Permalink
fix(svelte): update import statements for v5
Browse files Browse the repository at this point in the history
  • Loading branch information
mingjunlu committed Apr 2, 2024
1 parent f7d6254 commit bcd6bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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';
import { add_snippet_symbol } from 'svelte/internal/client';

// 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
2 changes: 1 addition & 1 deletion packages/integrations/svelte/server-v5.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { add_snippet_symbol } from 'svelte/internal';
import { add_snippet_symbol } from 'svelte/internal/server';
import { render } from 'svelte/server';

// Allow a slot to be rendered as a snippet (dev validation only)
Expand Down

0 comments on commit bcd6bf2

Please sign in to comment.