Update GLOBAL.process instead of over-writing during initialization.

This commit is contained in:
Natthu Bharambe 2015-08-17 15:41:47 -07:00
parent 65692b7235
commit a4e64196bc

View File

@ -137,7 +137,8 @@ function setupProfile() {
}
function setUpProcessEnv() {
GLOBAL.process = {env: {NODE_ENV: __DEV__ ? 'development' : 'production'}};
GLOBAL.process = GLOBAL.process || {};
GLOBAL.process.env = {NODE_ENV: __DEV__ ? 'development' : 'production'};
}
setUpRedBoxErrorHandler();