Skip to content

Commit 9909f77

Browse files
committed
Remove minified check
Fixes reduxjs#4443
1 parent 93d1886 commit 9909f77

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/index.js

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,8 @@ import combineReducers from './combineReducers'
33
import bindActionCreators from './bindActionCreators'
44
import applyMiddleware from './applyMiddleware'
55
import compose from './compose'
6-
import warning from './utils/warning'
76
import __DO_NOT_USE__ActionTypes from './utils/actionTypes'
87

9-
/*
10-
* This is a dummy function to check if the function name has been altered by minification.
11-
* If the function has been minified and NODE_ENV !== 'production', warn the user.
12-
*/
13-
function isCrushed() {}
14-
15-
if (
16-
process.env.NODE_ENV !== 'production' &&
17-
typeof isCrushed.name === 'string' &&
18-
isCrushed.name !== 'isCrushed'
19-
) {
20-
warning(
21-
'You are currently using minified code outside of NODE_ENV === "production". ' +
22-
'This means that you are running a slower development build of Redux. ' +
23-
'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' +
24-
'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' +
25-
'to ensure you have the correct code for your production build.'
26-
)
27-
}
28-
298
export {
309
createStore,
3110
legacy_createStore,

0 commit comments

Comments
 (0)