Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Enable PropTypes when process.env.NODE_ENV is *any* value other than …
Browse files Browse the repository at this point in the history
…"production". Fixes #244. /cc @Vpr99
  • Loading branch information
developit committed Dec 1, 2016
1 parent f6add74 commit e161b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const CAMEL_PROPS = /^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|fl
const BYPASS_HOOK = {};

/*global process*/
const DEV = typeof process!=='undefined' && process.env && process.env.NODE_ENV!=='production';
const DEV = typeof process==='undefined' || !process.env || process.env.NODE_ENV!=='production';

// a component that renders nothing. Used to replace components for unmountComponentAtNode.
const EmptyComponent = () => null;
Expand Down

0 comments on commit e161b7e

Please sign in to comment.