3 ms·
Tailwind v4 tree shakes too so even thats not technically bloated anymore
by typpilol 1y ago
Tailwind v4 tree shakes too so even thats not technically bloated anymore
- o11c 1y agoTree-shaking really only works for languages that are designed to be tree-shakable, which no web language is.
- _heimdall 1y agoTree shaking and bloat are different concerns. And, technically, is tailwind tree shaking? I thought they only built styles that the compiler could find being used rather than removing styles the compiler couldn't find being used.
- typpilol 1y agoTailwind v4 tree shakes automatically on imports is what I understand. I don't think it's identical to package tree shaking but the outcome is the same. I don't think it was doing it before v4, or if it was, not as efficiently
- zelphirkalt 1y agoTree shaking is actually a sign of bloat. It is a tool on top of a bloated mess, to fix that mess. It would be better not to make a mess in the first place.