Why twin.macro is so heavy #460
-
First of all, awesome job in this library. I'm planning to use I will share some screenshot from bundlephobia.com twin.macro@emotion/react@emotion/styledstyled-components |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Thanks! Because Twin is a babel plugin that runs at compile-time so it's not in the same category as these libraries. The bundle size is largely due to the tailwind class definitions 👍 |
Beta Was this translation helpful? Give feedback.
Thanks!
Because Twin is a babel plugin that runs at compile-time so it's not in the same category as these libraries.
The bundle size listed here never gets added to your app - only the resulting css rulesets get injected into your app.
The bundle size is largely due to the tailwind class definitions 👍