Skip to content

Commit

Permalink
Merge pull request #181 from kouchao/master
Browse files Browse the repository at this point in the history
fix process is not defined
  • Loading branch information
yiminghe committed Aug 13, 2019
2 parents 7476de6 + 684b9bf commit 289eb24
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export let warning = () => {};

// don't print warning message when in production env or node runtime
if (
process &&
process.env &&
process.env.NODE_ENV !== 'production' &&
typeof window !== 'undefined' &&
typeof document !== 'undefined'
Expand Down

0 comments on commit 289eb24

Please sign in to comment.