-
Notifications
You must be signed in to change notification settings - Fork 49
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
aren't propTypes removed in production anyway? #70
Comments
Hmm... we might want to add an option for adding a NODE_ENV check so minifiers can strip it for production. |
yea, but aren't the propTypes removed in production automatically?? |
Nope. React doesn't check them in production, but they're still in the code. |
@brigand Was this ever implemented? AFAIK consumers of a library won't be able to run babel plugins like babel-plugin-transform-react-remove-prop-types on their imports unless they get messy with their |
Yeah, we could add this, and since |
Cool! I don't mind helping out if you need some :). |
@sohkai I'd love some help! |
I'm wondering because I'm trying to determine the correct usage for an open source package. I'm thinking it shouldn't be set only in development so that users can decide.
The text was updated successfully, but these errors were encountered: