Skip to content

Commit ae4a3cc

Browse files
committed
Merge pull request #81 from rackt/rely-on-process-env
Rely on process.env.NODE_ENV being polyfilled
2 parents 302f2b3 + 020c91d commit ae4a3cc

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/components/createConnect.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,7 @@ export default function createConnect(React) {
205205
}
206206
}
207207

208-
if ((
209-
// Node-like CommonJS environments (Browserify, Webpack)
210-
typeof process !== 'undefined' &&
211-
typeof process.env !== 'undefined' &&
212-
process.env.NODE_ENV !== 'production'
213-
) ||
214-
// React Native
215-
typeof __DEV__ !== 'undefined' &&
216-
__DEV__ // eslint-disable-line no-undef
217-
) {
208+
if (process.env.NODE_ENV !== 'production') {
218209
Connect.prototype.componentWillUpdate = function componentWillUpdate() {
219210
if (this.version === version) {
220211
return;

0 commit comments

Comments
 (0)