Skip to content

Commit a08aaee

Browse files
instanceOf: workaround bundler issue with process.env (#3923)
Fixes: #3919 #3920 #3921
1 parent 1519fda commit a08aaee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsutils/instanceOf.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { inspect } from './inspect';
99
export const instanceOf: (value: unknown, constructor: Constructor) => boolean =
1010
/* c8 ignore next 6 */
1111
// FIXME: https://github.com/graphql/graphql-js/issues/2317
12-
globalThis.process?.env.NODE_ENV === 'production'
12+
globalThis.process && globalThis.process.env.NODE_ENV === 'production'
1313
? function instanceOf(value: unknown, constructor: Constructor): boolean {
1414
return value instanceof constructor;
1515
}

0 commit comments

Comments
 (0)