Skip to content

Commit cba4a0d

Browse files
trajanotimdorr
andauthored
Remove minified check (#4454)
Co-authored-by: Tim Dorr <[email protected]> Fixes #4443
1 parent 93d1886 commit cba4a0d

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

.github/workflows/size.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2-beta
1212
with:
1313
fetch-depth: 1
14-
- uses: preactjs/compressed-size-action@v1
14+
- uses: preactjs/compressed-size-action@v2
1515
with:
1616
repo-token: '${{ secrets.GITHUB_TOKEN }}'
1717
pattern: './{dist,es,lib}/*.{js,mjs}'

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)