facebook / stylex

StyleX is the styling system for ambitious user interfaces.
https://stylexjs.com
MIT License
8.22k stars 303 forks source link

An option for the babel plugin that transforms the debug/dev classes. #487

Open mrmntte opened 3 months ago

mrmntte commented 3 months ago

Describe the feature request

A function type option for the Babel plugin where the debug class names (using dev: true option) can be transformed.

The bold text that is generated is actually a set of symbols from the Unicode symbol set. It makes it easier to identify.

image

nmn commented 3 months ago

Interesting idea. Happy to accept a PR since this is not urgent enough to prioritise in the short term.

tounsoo commented 2 months ago

I was kinda thinking of this too! Potentially, since while developing, we don't need to be hashed, not having at all while dev: true might work too?