From 01fec0c79dd41b713fce746d7b58680102771dcd Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 1 Sep 2015 03:25:49 +0300 Subject: [PATCH] Rely on process.env.NODE_ENV being polyfilled --- src/utils/combineReducers.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/utils/combineReducers.js b/src/utils/combineReducers.js index d503806480..1fdf2db982 100644 --- a/src/utils/combineReducers.js +++ b/src/utils/combineReducers.js @@ -105,16 +105,7 @@ export default function combineReducers(reducers) { return newState; }); - 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') { if (!stateShapeVerified) { verifyStateShape(state, finalState); stateShapeVerified = true;