[API] Consider removing evaluation of values during build-time? #208
Labels
discussion
dx
Related to developers' experience
performance
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Summary
As far as I understand it, today, Pigment CSS works like Linaria, we evaluate the values at built-time, e.g. https://github.com/callstack/linaria?tab=readme-ov-file#syntax the font and color transformations.
This creates a very large build performance hit.
What if we were to remove this constraint? As far as I understand the value of Pigment CSS, it's about being able to CSS Modules but without having a separate file for it. When using CSS Modules, you can't import JavaScript functions so it seems that it's not that important.
Examples
Motivation
Improve build speed, simplify integration
Search keywords: -
The text was updated successfully, but these errors were encountered: