diff --git a/src/components/createConnect.js b/src/components/createConnect.js index a40ff735c..4c88ebab8 100644 --- a/src/components/createConnect.js +++ b/src/components/createConnect.js @@ -205,16 +205,7 @@ export default function createConnect(React) { } } - if (( - // Node-like CommonJS environments (Browserify, Webpack) - typeof process !== 'undefined' && - typeof process.env !== 'undefined' && - process.env.NODE_ENV !== 'production' - ) || - // React Native - typeof __DEV__ !== 'undefined' && - __DEV__ // eslint-disable-line no-undef - ) { + if (process.env.NODE_ENV !== 'production') { Connect.prototype.componentWillUpdate = function componentWillUpdate() { if (this.version === version) { return;