Skip to content

[lab] Remove propTypes in production for exotic components#25261

Merged
eps1lon merged 2 commits into
mui:nextfrom
eps1lon:core/fix-remove-proptypes
Mar 8, 2021
Merged

[lab] Remove propTypes in production for exotic components#25261
eps1lon merged 2 commits into
mui:nextfrom
eps1lon:core/fix-remove-proptypes

Conversation

@eps1lon

@eps1lon eps1lon commented Mar 8, 2021

Copy link
Copy Markdown
Member

Noticed the bundle size increase in #25254. Turns out we don't remove .propTypes for various dynamically created components.

We can't make this the default behavior of typescript-to-proptypes since it would add the comment to our docs demos where it would just be noise.

@mui-pr-bot

mui-pr-bot commented Mar 8, 2021

Copy link
Copy Markdown

@material-ui/lab: parsed: -7.29% 😍, gzip: -2.43% 😍

Details of bundle changes

Generated by 🚫 dangerJS against e7517f5

@eps1lon eps1lon changed the title [core] Remove propTypes for exotic components [core] Remove propTypes in production for exotic components Mar 8, 2021
@eps1lon eps1lon added the package: lab Specific to the lab. label Mar 8, 2021
@eps1lon eps1lon changed the title [core] Remove propTypes in production for exotic components [lab] Remove propTypes in production for exotic components Mar 8, 2021
@eps1lon
eps1lon marked this pull request as ready for review March 8, 2021 10:33
@eps1lon
eps1lon merged commit 8913765 into mui:next Mar 8, 2021
@eps1lon
eps1lon deleted the core/fix-remove-proptypes branch March 8, 2021 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: lab Specific to the lab. performance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants