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"