File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
packages/kit/src/core/create_app Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @sveltejs/kit ' : patch
3
+ ---
4
+
5
+ fix ` <Route> received an unexpected slot "default" ` warning
Original file line number Diff line number Diff line change @@ -130,11 +130,13 @@ function generate_app(manifest_data) {
130
130
131
131
while ( l -- ) {
132
132
pyramid = `
133
- <svelte:component this={ components[${ l } ]} {...(props_ ${ l } || {})}>
134
- {#if components[${ l + 1 } ]}
133
+ {#if components[${ l + 1 } ]}
134
+ <svelte:component this={ components[${ l } ]} {...(props_ ${ l } || {})}>
135
135
${ pyramid . replace ( / \n / g, '\n\t\t\t\t\t' ) }
136
- {/if}
137
- </svelte:component>
136
+ </svelte:component>
137
+ {:else}
138
+ <svelte:component this={components[${ l } ]} {...(props_${ l } || {})} />
139
+ {/if}
138
140
`
139
141
. replace ( / ^ \t \t \t / gm, '' )
140
142
. trim ( ) ;
You can’t perform that action at this time.
0 commit comments