Skip to content

Commit

Permalink
Run "npx sv migrate svelte-5" to complete Svelte 5 migration
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok committed Feb 25, 2025
1 parent 2d1f58f commit 7629b80
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 8 deletions.
25 changes: 20 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"svelte-check": "^4.0.0",
"tailwindcss": "^4.0.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"typescript": "^5.5.0",
"typescript-eslint": "^8.20.0",
"vite": "^6.0.0",
"vitest": "^3.0.0"
Expand Down
7 changes: 6 additions & 1 deletion src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<script lang="ts">
import '@picocss/pico/css/pico.min.css';
import '../app.css'
interface Props {
children?: import('svelte').Snippet;
}
let { children }: Props = $props();
</script>

<slot></slot>
{@render children?.()}
6 changes: 5 additions & 1 deletion src/routes/nostalgia/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
<script lang="ts">
import type { PageData } from './$types';
export let data: PageData;
interface Props {
data: PageData;
}
let { data }: Props = $props();
</script>

{@html data.page}

0 comments on commit 7629b80

Please sign in to comment.