File tree 4 files changed +843
-871
lines changed
4 files changed +843
-871
lines changed Original file line number Diff line number Diff line change 4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"@babel/plugin-proposal-decorators" : " ^7.1.0" ,
7
- "monkey-react-scripts" : " 0.1.2 " ,
7
+ "monkey-react-scripts" : " 0.1.3 " ,
8
8
"node-sass" : " ^4.9.3" ,
9
9
"postcss-inline-rtl" : " ^0.9.8" ,
10
10
"react" : " ^16.5.2" ,
11
11
"react-dom" : " ^16.5.2" ,
12
- "react-scripts" : " 2.0.3 " ,
12
+ "react-scripts" : " 2.1.1 " ,
13
13
"webpack-visualizer-plugin" : " ^0.1.11"
14
14
},
15
15
"scripts" : {
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const {findRule} = require('./utils');
3
3
module . exports . babelPatch = function babelPatch ( webpackConfig , isDevelopment ) {
4
4
// find babel rule
5
5
const babelRule = findRule ( webpackConfig , ( rule ) => {
6
- return ( '' + rule . test === '' + / \. ( j s | j s x ) $ / )
6
+ return ( '' + rule . test === '' + / \. ( j s | m j s | j s x | t s | t s x ) $ / )
7
7
} ) ;
8
8
const plugins = babelRule . options . plugins || [ ] ;
9
9
babelRule . options . plugins = [
Original file line number Diff line number Diff line change 1
1
module . exports . findRule = function findRule ( webpackConfig , callback ) {
2
- const rules = webpackConfig . module . rules [ 3 ] . oneOf ;
2
+ const rules = webpackConfig . module . rules [ 2 ] . oneOf ;
3
3
const index = rules . findIndex ( callback ) ;
4
4
if ( index === - 1 ) throw Error ( 'Loader not found' ) ;
5
5
return rules [ index ]
6
6
} ;
7
7
8
8
module . exports . findRules = function findRule ( webpackConfig , callback ) {
9
- const rules = webpackConfig . module . rules [ 3 ] . oneOf ;
9
+ const rules = webpackConfig . module . rules [ 2 ] . oneOf ;
10
10
return rules . filter ( callback ) ;
11
11
} ;
12
12
You can’t perform that action at this time.
0 commit comments