Skip to content

Commit 7da0879

Browse files
committed
update dependencies
1 parent f394398 commit 7da0879

File tree

4 files changed

+843
-871
lines changed

4 files changed

+843
-871
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"private": true,
55
"dependencies": {
66
"@babel/plugin-proposal-decorators": "^7.1.0",
7-
"monkey-react-scripts": "0.1.2",
7+
"monkey-react-scripts": "0.1.3",
88
"node-sass": "^4.9.3",
99
"postcss-inline-rtl": "^0.9.8",
1010
"react": "^16.5.2",
1111
"react-dom": "^16.5.2",
12-
"react-scripts": "2.0.3",
12+
"react-scripts": "2.1.1",
1313
"webpack-visualizer-plugin": "^0.1.11"
1414
},
1515
"scripts": {

webpack-helpers/babelPatch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const {findRule} = require('./utils');
33
module.exports.babelPatch = function babelPatch(webpackConfig, isDevelopment) {
44
// find babel rule
55
const babelRule = findRule(webpackConfig, (rule) => {
6-
return ('' + rule.test === '' + /\.(js|jsx)$/)
6+
return ('' + rule.test === '' + /\.(js|mjs|jsx|ts|tsx)$/)
77
});
88
const plugins = babelRule.options.plugins || [];
99
babelRule.options.plugins = [

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[3].oneOf;
2+
const rules = webpackConfig.module.rules[2].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[3].oneOf;
9+
const rules = webpackConfig.module.rules[2].oneOf;
1010
return rules.filter(callback);
1111
};
1212

0 commit comments

Comments
 (0)