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
@mostrecent hey, thank you for this issue. For me that looks like a bug, but in fact, it just shows that pug doesn't understand new JavaScript syntax, while in the second case we use spreading outside of pug template.
There is a workaround, you can still use Object.assign inside the template.
But in general I agree, that supporting of new js syntax inside pug will be a good idea. There is some workaround, and some discussion regarding that in pug repository: pugjs/pug#2921
I checked all the prior issues but I found a strange case where a spread doesn't work within pug (I am aware that attr values are pure JS).
Following doesn't work:
Following does work:
A bit context: css is emotion's css prop, css() is emotion's css helper, mq a media query helper from facepaint.
The text was updated successfully, but these errors were encountered: