Skip to content

Commit 997fd52

Browse files
committed
upgrade dependencies: react-scripts v4.0.0, monkey-react-scripts v0.3.1
1 parent 315f413 commit 997fd52

File tree

3 files changed

+2729
-2118
lines changed

3 files changed

+2729
-2118
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"private": true,
55
"dependencies": {
66
"@babel/plugin-proposal-decorators": "^7.12.1",
7-
"monkey-react-scripts": "^0.2.4",
7+
"monkey-react-scripts": "^0.3.1",
88
"node-sass": "^4.14.1",
99
"react": "^17.0.0",
1010
"react-dom": "^17.0.0",
11-
"react-scripts": "3.4.4",
11+
"react-scripts": "4.0.0",
1212
"rtlcss": "^2.6.1",
1313
"webpack-visualizer-plugin": "^0.1.11"
1414
},

webpack-helpers/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
module.exports.findRule = function findRule(webpackConfig, callback) {
2-
const rules = webpackConfig.module.rules[2].oneOf;
2+
const rules = webpackConfig.module.rules[1].oneOf;
33
const index = rules.findIndex(callback);
44
if (index === -1) throw Error('Loader not found');
55
return rules[index]
66
};
77

88
module.exports.findRules = function findRule(webpackConfig, callback) {
9-
const rules = webpackConfig.module.rules[2].oneOf;
9+
const rules = webpackConfig.module.rules[1].oneOf;
1010
return rules.filter(callback);
1111
};
1212

0 commit comments

Comments
 (0)