Skip to content

Commit

Permalink
upgrade dependencies: react-scripts v4.0.0, monkey-react-scripts v0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
smmoosavi committed Oct 24, 2020
1 parent 315f413 commit 997fd52
Show file tree
Hide file tree
Showing 3 changed files with 2,729 additions and 2,118 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"private": true,
"dependencies": {
"@babel/plugin-proposal-decorators": "^7.12.1",
"monkey-react-scripts": "^0.2.4",
"monkey-react-scripts": "^0.3.1",
"node-sass": "^4.14.1",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-scripts": "3.4.4",
"react-scripts": "4.0.0",
"rtlcss": "^2.6.1",
"webpack-visualizer-plugin": "^0.1.11"
},
Expand Down
4 changes: 2 additions & 2 deletions webpack-helpers/utils.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports.findRule = function findRule(webpackConfig, callback) {
const rules = webpackConfig.module.rules[2].oneOf;
const rules = webpackConfig.module.rules[1].oneOf;
const index = rules.findIndex(callback);
if (index === -1) throw Error('Loader not found');
return rules[index]
};

module.exports.findRules = function findRule(webpackConfig, callback) {
const rules = webpackConfig.module.rules[2].oneOf;
const rules = webpackConfig.module.rules[1].oneOf;
return rules.filter(callback);
};

Expand Down
Loading

0 comments on commit 997fd52

Please sign in to comment.