Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce bundle size by removing runtime props validation #566

Open
wants to merge 1 commit into
base: 0.2.x
Choose a base branch
from

Conversation

vorant94
Copy link

@vorant94 vorant94 commented Jul 17, 2024

as I suggested in #232 we can reduce lib bundle size by removing runtime checks of prop-types and rely on TypeScript to do build time checks

i really would like to get a feedback on this idea from repo maintainers, so I decided to create PR before getting a green light for it in the issue. I hope its ok and isn't considered PR spam as I didn't intend for it

Anyway thank you for your work regardless if this PR gets approved or cancelled

UPD: as of this article even without bundle size thing prop-types are deprecated as of 2017 and its errors will be silently ignored starting from React 19, so more reasons to strip this dep off

https://react.dev/blog/2024/04/25/react-19-upgrade-guide#removed-proptypes-and-defaultprops

@robmadole robmadole changed the title reduce bundle size by removing runtime props validation Reduce bundle size by removing runtime props validation Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant