mirror of https://github.com/sveltejs/svelte
fix: improve error message for migration errors when slot would be renamed (#15841)
Co-authored-by: Paolo Ricciuti <ricciutipaolo@gmail.com>pull/15861/head
parent
1c2fc21023
commit
c051a6eb1e
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'svelte': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix: improve error message for migration errors when slot would be renamed
|
@ -1,7 +1,7 @@
|
|||||||
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot making the component unusable -->
|
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot (derived to derived_1) making the component unusable -->
|
||||||
<script>
|
<script>
|
||||||
let derived;
|
let derived;
|
||||||
</script>
|
</script>
|
||||||
<Component>
|
<Component>
|
||||||
<slot name="derived" slot="derived" />
|
<slot name="derived" slot="derived" />
|
||||||
</Component>
|
</Component>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot making the component unusable -->
|
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot (body to body_1) making the component unusable -->
|
||||||
<script>
|
<script>
|
||||||
let body;
|
let body;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<slot name="body"></slot>
|
<slot name="body"></slot>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot making the component unusable -->
|
<!-- @migration-task Error while migrating Svelte code: This migration would change the name of a slot (dashed-name to dashed_name) making the component unusable -->
|
||||||
<slot name="dashed-name"></slot>
|
<slot name="dashed-name"></slot>
|
||||||
|
Loading…
Reference in new issue