Build process plugin #369
Replies: 2 comments 3 replies
-
@dcastil alive been spinning on this idea with @DaniGuardiola I understand they’re might be some limitations as far as what we can achieve at build-time vs. run-time, but wanted to float the idea. |
Beta Was this translation helpful? Give feedback.
-
Interesting idea! Leaving the feasibility aside, I'd be worried about the performance characteristics of this though. 🤔 The I tested how much CPU time tailwind-merge uses and wrote about it in #243 (comment) and #164 (comment). |
Beta Was this translation helpful? Give feedback.
-
I think a great advancement of this package would be to offer using tail and merge automatically as a build-time preprocessor plugin so that it automatically applies the merging to all instances of class/className across the codebase without needing to use
twMerge
directly.twMerge would still be useful where the user wants to set up classes outside of the usual class/className attribute/prop.
Beta Was this translation helpful? Give feedback.
All reactions