Skip to content

Design system performance tuning #156

Answered by mattcompiles
loliver asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @loliver 👋

Not sure where you heard about tree shaking not working. That issue was specific to treat rather than vanilla-extract. You should be able to tree shake your themes as long as you're using the createThemeContract API. If you've done that, make sure each theme lives in its own file. Then normal CSS splitting techniques should apply.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@loliver
Comment options

@loliver
Comment options

@loliver
Comment options

@mattcompiles
Comment options

@mattcompiles
Comment options

Answer selected by mattcompiles
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