File tree 2 files changed +4
-3
lines changed 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export default function combineReducers(reducers) {
121
121
for ( let i = 0 ; i < reducerKeys . length ; i ++ ) {
122
122
const key = reducerKeys [ i ]
123
123
124
- if ( process . env . NODE_ENV !== 'production' ) {
124
+ if ( self . process && process . env . NODE_ENV !== 'production' ) {
125
125
if ( typeof reducers [ key ] === 'undefined' ) {
126
126
warning ( `No reducer provided for key "${ key } "` )
127
127
}
@@ -134,7 +134,7 @@ export default function combineReducers(reducers) {
134
134
const finalReducerKeys = Object . keys ( finalReducers )
135
135
136
136
let unexpectedKeyCache
137
- if ( process . env . NODE_ENV !== 'production' ) {
137
+ if ( self . process && process . env . NODE_ENV !== 'production' ) {
138
138
unexpectedKeyCache = { }
139
139
}
140
140
@@ -150,7 +150,7 @@ export default function combineReducers(reducers) {
150
150
throw shapeAssertionError
151
151
}
152
152
153
- if ( process . env . NODE_ENV !== 'production' ) {
153
+ if ( self . process && process . env . NODE_ENV !== 'production' ) {
154
154
const warningMessage = getUnexpectedStateShapeWarningMessage (
155
155
state ,
156
156
finalReducers ,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import __DO_NOT_USE__ActionTypes from './utils/actionTypes'
13
13
function isCrushed ( ) { }
14
14
15
15
if (
16
+ self . process &&
16
17
process . env . NODE_ENV !== 'production' &&
17
18
typeof isCrushed . name === 'string' &&
18
19
isCrushed . name !== 'isCrushed'
You can’t perform that action at this time.
0 commit comments