You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
breaking: warn on quotes single-expression attributes in runes mode (#12479)
* parse `foo={bar}` attribute as `value: { type: 'ExpressionTag', .. }` (i.e. don't wrap in an array)
* warn on quoted single-expression-attributes
* breaking: warn on quotes single-expression attributes in runes mode
In a future version, that will mean things are getting stringified, which is a departure from how things work today, therefore a warning first.
Related to #7925
* Update .changeset/plenty-items-build.md
* Apply suggestions from code review
* missed a spot
---------
Co-authored-by: Rich Harris <[email protected]>
Copy file name to clipboardExpand all lines: packages/svelte/messages/compile-warnings/template.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,10 @@
14
14
15
15
> '%wrong%' is not a valid HTML attribute. Did you mean '%right%'?
16
16
17
+
## attribute_quoted
18
+
19
+
> Quoted attributes on components and custom elements will be stringified in a future version of Svelte. If this isn't what you want, remove the quotes
20
+
17
21
## bind_invalid_each_rest
18
22
19
23
> The rest operator (...) will create a new object and binding '%name%' with the original object will not work
0 commit comments