Skip to content

Commit e2e14d2

Browse files
committed
Disable envification warning if Function.name is not supported
Fixes #1311
1 parent 0fed607 commit e2e14d2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ import warning from './utils/warning'
1111
*/
1212
function isCrushed() {}
1313

14-
if (isCrushed.name !== 'isCrushed' && process.env.NODE_ENV !== 'production') {
14+
if (
15+
process.env.NODE_ENV !== 'production' &&
16+
setInterval.name === 'setInterval' &&
17+
isCrushed.name !== 'isCrushed'
18+
) {
1519
warning(
1620
'You are currently using minified code outside of NODE_ENV === \'production\'. ' +
1721
'This means that you are running a slower development build of Redux. ' +

0 commit comments

Comments
 (0)