Replies: 2 comments 2 replies
-
It seems you attached the wrong link @theMasix. Curious to see minify method |
Beta Was this translation helpful? Give feedback.
1 reply
-
I feel like this could easily be done in your side, what's the reasoning behind creating those variants that should later be merged anyway ? btw instead of using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
You can add a simple static analyzer to merge and combine
compoundVariants
that have the same conditions.This means that both these conditions:
can be merged into one:
Problem Statement/Justification
Since Panda ships all the provided
compoundVariants
to the final bundle, there should be a static analyzer that minifies thecompoundVariants
as much as possible.Proposed Solution or API
Let's take a look at
minifyCompoundVariants
method called here:https://stackblitz.com/edit/vitejs-vite-ivbkjf?file=src%2Fcomponents%2Fbutton.style.ts
Alternatives
No response
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions