From a0910028c3839dfff8bd31844a20fc4ba3bdefb4 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 15 Feb 2018 10:43:59 +0100 Subject: [PATCH] Fixed #95: incorrect detection of minified sources --- changelog.md | 4 ++++ src/common.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/changelog.md b/changelog.md index 147192cd..29e5b9f1 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +### 1.0.3 (15-Feb-2018) + +* Fixed dectection of production mode. Fixes [#95](https://github.com/mweststrate/immer/issues/95) + ### 1.0.2 (13-Feb-2018) * `flow-bin` and `cpx` were accidentally dependencies instead of dev-dependencies. Fixed diff --git a/src/common.js b/src/common.js index 426d7824..25eec19b 100644 --- a/src/common.js +++ b/src/common.js @@ -7,7 +7,7 @@ function verifyMinified() {} const inProduction = (typeof process !== "undefined" && process.env.NODE_ENV === "production") || - verifyMinified.name === "verifyMinified" + verifyMinified.name !== "verifyMinified" let autoFreeze = !inProduction let useProxies = typeof Proxy !== "undefined"