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
I'm a bit conflicted about adding the enhancement flag, it's a missing feature imo but it could also be seen as a bug I suppose.
Anyways, the createPropertyFormatter format helper utility has a fix for this I introduced in v3 for the CSS / SCSS / LESS / Stylus formats, see the addComment helper. We can probably make that reusable in some way, and reuse it for our JS formats since they use a similar syntax for comments (// and /* */). Actually, I'm not sure // is valid in CSS, but at least the latter one they do share
Comments are inserted as a line comment here:
style-dictionary/lib/common/formats.js
Line 643 in 737a02b
This has previously been fixed for some formats in #953
Example of failing token
This fails to build with
The text was updated successfully, but these errors were encountered: