From e2e14d26f09ca729ae0555442f50fcfc45bfb423 Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Fri, 29 Jan 2016 17:46:20 +0000 Subject: [PATCH] Disable envification warning if Function.name is not supported Fixes #1311 --- src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 17dbdade4e..0910a86a84 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,11 @@ import warning from './utils/warning' */ function isCrushed() {} -if (isCrushed.name !== 'isCrushed' && process.env.NODE_ENV !== 'production') { +if ( + process.env.NODE_ENV !== 'production' && + setInterval.name === 'setInterval' && + isCrushed.name !== 'isCrushed' +) { warning( 'You are currently using minified code outside of NODE_ENV === \'production\'. ' + 'This means that you are running a slower development build of Redux. ' +