Open jponeill opened 1 year ago
It's worth noting that some of the styles moved from the theme to the component styles which can explain some of the difference since the visualization doesn't show the theme.
You're right, @crisbeto , the CSS bundle size is ~9K smaller. Accounting for that, it looks like there's ~40% increase for these components.
@crisbeto I see that the legacy components have been removed in v17. I'm looking forward to switching over, but am a little worried about the increase in bundle size based on my quick tests.
Is this a regression?
The previous version in which this bug was not present was
No response
Description
I know this is work in progress, but when I compare the bundle size of the legacy components vs the experimental ones, the experimental ones are significantly larger (50% larger, in my project). I've attached source-map-explorer that shows the difference for form-field, button, dialog, expansion & icon.
Reproduction
StackBlitz link: Steps to reproduce:
Expected Behavior
I expect legacy and experimental bundle sizes to be close in size
Actual Behavior
Experimental bundle sizes are much larger.
Environment