Skip to content

Commit

Permalink
fix env check on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
chaance committed Feb 15, 2020
1 parent 9861f67 commit 3f889be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ let checkStyles = (packageName: string): void => void packageName;
// In CJS files, process.env.NODE_ENV is stripped from our build, but we need it
// to prevent style checks from clogging up user logs while testing.
// This is a workaround until we can tweak the build a bit to accommodate.
let { env } = process;
let { env = { NODE_ENV: "production" } } = process || {};
let nodeEnv = env.NODE_ENV;

if (__DEV__) {
Expand Down

0 comments on commit 3f889be

Please sign in to comment.