We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e477ad0 commit 55eb480Copy full SHA for 55eb480
src/js/utils/environment.ts
@@ -38,5 +38,5 @@ export function getHermesVersion(): string | undefined {
38
39
/** Returns default environment based on __DEV__ */
40
export function getDefaultEnvironment(): 'development' | 'production' {
41
- return __DEV__ ? 'development' : 'production';
+ return typeof __DEV__ !== 'undefined' && __DEV__ ? 'development' : 'production';
42
}
0 commit comments