Skip to content

Commit

Permalink
[Svelte] Upgrade to Svelte 5 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu Cote authored and jamesst20 committed Jan 6, 2025
1 parent c8493ab commit 32d5b4b
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion packages/svelte/src/lib/components/Link.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script context="module" lang="ts">
<script module lang="ts">
import type { Snippet } from 'svelte'
import type { HTMLAnchorAttributes, HTMLButtonAttributes } from 'svelte/elements'
import type { VisitOptions } from '@jamesst20/inertia-core'
Expand Down
6 changes: 4 additions & 2 deletions packages/svelte/src/lib/components/Render.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script context="module" lang="ts">
<script module lang="ts">
import type { PageProps } from '@jamesst20/inertia-core'
import type { ComponentType } from 'svelte'
import Render from "./Render.svelte"
type RenderProps = {
component: ComponentType
Expand Down Expand Up @@ -37,7 +39,7 @@
{#key key}
<svelte:component this={component} {...props}>
{#each childComponents as child, index (component && component.length === index ? store.key : null)}
<svelte:self {...child} />
<Render {...child} />
{/each}
</svelte:component>
{/key}
Expand Down
2 changes: 1 addition & 1 deletion playgrounds/svelte/resources/js/Pages/Article.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script context="module">
<script module>
export { default as layout } from '../Components/Layout.svelte'
</script>

Expand Down
2 changes: 1 addition & 1 deletion playgrounds/svelte/resources/js/Pages/Form.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script context="module">
<script module>
export { default as layout } from '../Components/Layout.svelte'
</script>

Expand Down
2 changes: 1 addition & 1 deletion playgrounds/svelte/resources/js/Pages/Home.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script context="module">
<script module>
export { default as layout } from '../Components/Layout.svelte'
</script>

Expand Down
2 changes: 1 addition & 1 deletion playgrounds/svelte/resources/js/Pages/Login.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script context="module">
<script module>
export { default as layout } from '../Components/Layout.svelte'
</script>

Expand Down
2 changes: 1 addition & 1 deletion playgrounds/svelte/resources/js/Pages/User.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script context="module">
<script module>
export { default as layout } from '../Components/Layout.svelte'
</script>

Expand Down
2 changes: 1 addition & 1 deletion playgrounds/svelte/resources/js/Pages/Users.svelte
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script context="module">
<script module>
export { default as layout } from '../Components/Layout.svelte'
</script>

Expand Down

0 comments on commit 32d5b4b

Please sign in to comment.