Closed
Description
Describe the bug
I don't know if it's intentional or not, but there is no longer an error message in case of duplicate directives for class:name and style:property.
Ex:
<button
style:border={border}
style:border="1px solid red"
>
button
</button>
On Svelte 4, this code will produce a compile error "Attributes need to be unique".
This is no longer the case with Svelte 5, (runes enabled or not)
Reproduction
Svelte 4 (OK) : https://svelte.dev/repl/09eaa85fa6b842959418bbcc9c0d1cf2?version=4.2.19
Logs
No response
System Info
REPL
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels