Skip to content

Conversation

@rbscott
Copy link

@rbscott rbscott commented Jul 25, 2017

Disable 'babel-plugin-transform-react-remove-prop-types'
plugin during a development build. Some libraries
expect prop types to be available during a development
build.

Semantic UI React uses prop types during development
for validation. Issue 1869 has some additional context.

Disable 'babel-plugin-transform-react-remove-prop-types'
plugin during a development build. Some libraries
expect prop types to be available during a development
build.
Copy link
Member

@reznord reznord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

But not really sure why a library requires prop-types in a development build.

@rbscott
Copy link
Author

rbscott commented Jul 26, 2017

@reznord I am not sure I fully understand how they are used, but it is a part of the AutoControlledComponent validation logic here. I don't fully understand it, and perhaps it is only useful when are you developing a component for Semantic-UI-React. I recently switched from react to preact, which is when the error started, so I decided to submit a PR.

@reznord reznord merged commit a6d34c6 into preactjs:master Jul 28, 2017
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.

3 participants