mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 07:35:25 +00:00
Update GLOBAL.process
instead of over-writing during initialization.
This commit is contained in:
parent
65692b7235
commit
a4e64196bc
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user