Skip to content

Commit 01fec0c

Browse files
committed
Rely on process.env.NODE_ENV being polyfilled
1 parent e45d9ff commit 01fec0c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/utils/combineReducers.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -105,16 +105,7 @@ export default function combineReducers(reducers) {
105105
return newState;
106106
});
107107

108-
if ((
109-
// Node-like CommonJS environments (Browserify, Webpack)
110-
typeof process !== 'undefined' &&
111-
typeof process.env !== 'undefined' &&
112-
process.env.NODE_ENV !== 'production'
113-
) ||
114-
// React Native
115-
typeof __DEV__ !== 'undefined' &&
116-
__DEV__ // eslint-disable-line no-undef
117-
) {
108+
if (process.env.NODE_ENV !== 'production') {
118109
if (!stateShapeVerified) {
119110
verifyStateShape(state, finalState);
120111
stateShapeVerified = true;

0 commit comments

Comments
 (0)