Skip to content

Commit 25c9ff5

Browse files
authored
Remove minified check
Fixes reduxjs#4443
1 parent 568c92a commit 25c9ff5

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

src/index.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import combineReducers from './combineReducers'
44
import bindActionCreators from './bindActionCreators'
55
import applyMiddleware from './applyMiddleware'
66
import compose from './compose'
7-
import warning from './utils/warning'
87
import __DO_NOT_USE__ActionTypes from './utils/actionTypes'
98

109
// types
@@ -38,26 +37,6 @@ export { MiddlewareAPI, Middleware } from './types/middleware'
3837
// actions
3938
export { Action, AnyAction } from './types/actions'
4039

41-
/*
42-
* This is a dummy function to check if the function name has been altered by minification.
43-
* If the function has been minified and NODE_ENV !== 'production', warn the user.
44-
*/
45-
function isCrushed() {}
46-
47-
if (
48-
process.env.NODE_ENV !== 'production' &&
49-
typeof isCrushed.name === 'string' &&
50-
isCrushed.name !== 'isCrushed'
51-
) {
52-
warning(
53-
'You are currently using minified code outside of NODE_ENV === "production". ' +
54-
'This means that you are running a slower development build of Redux. ' +
55-
'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' +
56-
'or setting mode to production in webpack (https://webpack.js.org/configuration/mode/) ' +
57-
'to ensure you have the correct code for your production build.'
58-
)
59-
}
60-
6140
export {
6241
createStore,
6342
combineReducers,

0 commit comments

Comments
 (0)