mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-31 17:18:45 +08:00
Update GLOBAL.process instead of over-writing during initialization.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user