Skip to content

Why twin.macro is so heavy #460

Answered by ben-rogerson
itelo asked this question in Q&A
Discussion options

You must be logged in to vote

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 👍

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by itelo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants