facebook / stylex

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

chore: using ansis replace chalk #586

Closed nonzzz closed 1 month ago

nonzzz commented 1 month ago

What changed / motivation ?

The cli package is using chalk as a terminal output. However this package doesn't declare equivalent dependencies which risks ghost dependencies. And the most important ting is that the chalk doesn't support cjs. So we should find a package support esm/cjs. picocolors looks well but has too few features. So i think we can using ansis replace chalk and it will be smaller and faster.

Linked PR/Issues

None

Additional Context

Screenshots, Tests, Anything Else

Pre-flight checklist

nmn commented 1 month ago

LGTM if it looks good to you @Jta26 ?