Skip to content

Commit

Permalink
Fixed #95: incorrect detection of minified sources
Browse files Browse the repository at this point in the history
  • Loading branch information
mweststrate committed Feb 15, 2018
1 parent 551b110 commit a091002
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a091002

Please sign in to comment.