From 9909f7792525fdcbff669060893c32eedbdce1e0 Mon Sep 17 00:00:00 2001 From: Archimedes Trajano Date: Fri, 25 Nov 2022 14:37:48 -0500 Subject: [PATCH 1/2] Remove minified check Fixes https://github.com/reduxjs/redux/issues/4443 --- src/index.js | 21 --------------------- 1 file changed, 21 deletions(-) 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, From e3290f0d65dae7eb598916eb1cfaa15e79a2b471 Mon Sep 17 00:00:00 2001 From: Tim Dorr Date: Sat, 17 Dec 2022 11:28:47 -0500 Subject: [PATCH 2/2] Try a new csa version --- .github/workflows/size.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}'