Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #472 from kaisermann/refactor-dev-logic
Browse files Browse the repository at this point in the history
Make process shim not necessary on production environments
  • Loading branch information
k1r0s committed May 31, 2018
2 parents 70e19e3 + 3e2fd8d commit bb3a6a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const CAMEL_PROPS = /^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|fl
const BYPASS_HOOK = {};

/*global process*/
const DEV = typeof process==='undefined' || !process.env || process.env.NODE_ENV!=='production';
const DEV = typeof process !== 'undefined' && process.env && process.env.NODE_ENV!=='production';

// a component that renders nothing. Used to replace components for unmountComponentAtNode.
function EmptyComponent() { return null; }
Expand Down

0 comments on commit bb3a6a0

Please sign in to comment.