Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Fix false positive when mixing DEV and PROD builds #50

Merged
merged 1 commit into from
May 12, 2017

Conversation

gaearon
Copy link
Contributor

@gaearon gaearon commented May 12, 2017

When a library bundles a PROD build of prop-types, but it is used with a DEV version of React, we print a false positive error message:

Failed prop type: React.PropTypes type checking code is stripped in production

This fixes it by checking the secret even in the production build.
Fixes #38.

@gaearon gaearon merged commit d0fc940 into master May 12, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PropType validators error when an external lib bundles prop-types
1 participant