trisquel-icecat/icecat/devtools/client/shared/vendor/REDUX_UPGRADING.md

718 B

Upgrading redux

Getting the Source

git clone https://github.com/reactjs/redux
cd redux
git checkout v4.0.5 # checkout the right version tag

Building

npm install
npm run build
cp dist/redux.js <gecko-dev>/devtools/client/shared/vendor/redux.js

Patching react-redux

  • open redux.js
  • Add the version number to the top of the file:
    /**
     * react-redux v4.0.5
     */
    
  • Replace all instances of Function('return this')() with globalThis. See Bug 1473549.