Skip to content

Commit

Permalink
auto freeze to false update
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregjarvez committed Jan 20, 2018
1 parent e2518a1 commit 8a31b05
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ export const PROXY_STATE =
typeof Symbol !== "undefined"
? Symbol("immer-proxy-state")
: "__$immer_state"
function verifyMinified () {}
function verifyMinified() {}

const env = process.env.NODE_ENV;
const shouldFreeze = env ? !(env === 'production') : verifyMinified.name === 'verifyMinified'

let autoFreeze = shouldFreeze
let autoFreeze = (typeof process !== 'undefined' && process.env.NODE_ENV === 'production') ||
verifyMinified.name === "verifyMinified"
let useProxies = typeof Proxy !== "undefined"

/**
Expand Down

0 comments on commit 8a31b05

Please sign in to comment.