Skip to content

Commit

Permalink
Fix #2264 (#2265)
Browse files Browse the repository at this point in the history
  • Loading branch information
le0nik authored and FredyC committed Jan 27, 2020
1 parent d5488a1 commit 55a2fcb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/v4/mobx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ try {
if (
testCodeMinification.name !== "testCodeMinification" &&
process.env.NODE_ENV !== "production" &&
process.env.IGNORE_MOBX_MINIFY_WARNING !== "true"
typeof process !== 'undefined' && process.env.IGNORE_MOBX_MINIFY_WARNING !== "true"
) {
// trick so it doesn't get replaced
const varName = ["process", "env", "NODE_ENV"].join(".")
Expand Down
2 changes: 1 addition & 1 deletion src/v5/mobx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ try {
if (
testCodeMinification.name !== "testCodeMinification" &&
process.env.NODE_ENV !== "production" &&
process.env.IGNORE_MOBX_MINIFY_WARNING !== "true"
typeof process !== 'undefined' && process.env.IGNORE_MOBX_MINIFY_WARNING !== "true"
) {
// trick so it doesn't get replaced
const varName = ["process", "env", "NODE_ENV"].join(".")
Expand Down

0 comments on commit 55a2fcb

Please sign in to comment.