From cba4a0dbcf3722eedc4036b148a681fa0cc71235 Mon Sep 17 00:00:00 2001 From: Archimedes Trajano Date: Sat, 17 Dec 2022 11:30:40 -0500 Subject: [PATCH] Remove minified check (#4454) Co-authored-by: Tim Dorr Fixes https://github.com/reduxjs/redux/issues/4443 --- .github/workflows/size.yaml | 2 +- src/index.js | 21 --------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/size.yaml b/.github/workflows/size.yaml index d9aa4474dc..4a1a023f8a 100644 --- a/.github/workflows/size.yaml +++ b/.github/workflows/size.yaml @@ -11,7 +11,7 @@ jobs: - uses: actions/checkout@v2-beta with: fetch-depth: 1 - - uses: preactjs/compressed-size-action@v1 + - uses: preactjs/compressed-size-action@v2 with: repo-token: '${{ secrets.GITHUB_TOKEN }}' pattern: './{dist,es,lib}/*.{js,mjs}' diff --git a/src/index.js b/src/index.js index 141a84e1dd..d5991f3471 100644 --- a/src/index.js +++ b/src/index.js @@ -3,29 +3,8 @@ import combineReducers from './combineReducers' import bindActionCreators from './bindActionCreators' import applyMiddleware from './applyMiddleware' import compose from './compose' -import warning from './utils/warning' import __DO_NOT_USE__ActionTypes from './utils/actionTypes' -/* - * This is a dummy function to check if the function name has been altered by minification. - * If the function has been minified and NODE_ENV !== 'production', warn the user. - */ -function isCrushed() {} - -if ( - process.env.NODE_ENV !== 'production' && - typeof isCrushed.name === 'string' && - 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. ' + - 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + - 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + - 'to ensure you have the correct code for your production build.' - ) -} - export { createStore, legacy_createStore,