-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Having the full class string on elements is usually fine, but since we're in compile land, some debugging labels would be really helpful. A few ways to accomplish this, in order of preference
-
A data attribute
data-tw-component="FileName"
Easiest way to go, keeps the class name logic as is with a completely additive attribute -
Appending to the className
tw-FileName bg-blue-500 text-white
Also completely doable, might introduce some additional clutter on the class name though -
Using labels + apply for everything
I'm already iffy on using apply for everything, could introduce unnecessary overhead in the cases whereapplyis already being used. That, and the labels proposal hasn't happened yet, and changes in that will require changes in the transformer. In short, lack of stability here
Additionally, only do this in dev, and not in prod. Maybe make it configurable, but I don't see a need? Someone might have a problem with it at some point, so maybe