@@ -670,7 +670,7 @@ describe('The config-generator function', () => {
670
670
671
671
const actualConfig = configGenerator ( config ) ;
672
672
673
- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
673
+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
674
674
675
675
// check for the default env preset only
676
676
expect ( JSON . stringify ( jsRule . use [ 0 ] . options . presets ) ) . contains ( '@babel/preset-env' ) ;
@@ -1011,7 +1011,7 @@ describe('The config-generator function', () => {
1011
1011
1012
1012
const actualConfig = configGenerator ( config ) ;
1013
1013
1014
- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1014
+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
1015
1015
expect ( String ( jsRule . exclude ) ) . to . equal ( String ( / ( n o d e _ m o d u l e s | b o w e r _ c o m p o n e n t s ) / ) ) ;
1016
1016
1017
1017
const babelLoader = jsRule . use . find ( loader => / b a b e l - l o a d e r / . test ( loader . loader ) ) ;
@@ -1030,7 +1030,7 @@ describe('The config-generator function', () => {
1030
1030
1031
1031
const actualConfig = configGenerator ( config ) ;
1032
1032
1033
- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1033
+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
1034
1034
expect ( String ( jsRule . exclude ) ) . to . equal ( String ( / f o o / ) ) ;
1035
1035
} ) ;
1036
1036
@@ -1045,7 +1045,7 @@ describe('The config-generator function', () => {
1045
1045
1046
1046
const actualConfig = configGenerator ( config ) ;
1047
1047
1048
- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1048
+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
1049
1049
expect ( jsRule . exclude ) . to . be . a ( 'Function' ) ;
1050
1050
expect ( jsRule . exclude ( path . join ( 'test' , 'node_modules' , 'foo' , 'index.js' ) ) ) . to . be . false ;
1051
1051
expect ( jsRule . exclude ( path . join ( 'test' , 'node_modules' , 'bar' , 'index.js' ) ) ) . to . be . true ;
@@ -1063,7 +1063,7 @@ describe('The config-generator function', () => {
1063
1063
1064
1064
const actualConfig = configGenerator ( config ) ;
1065
1065
1066
- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1066
+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
1067
1067
const babelLoader = jsRule . use . find ( loader => / b a b e l - l o a d e r / . test ( loader . loader ) ) ;
1068
1068
const babelEnvPreset = babelLoader . options . presets . find ( ( [ name ] ) => name === '@babel/preset-env' ) ;
1069
1069
expect ( babelEnvPreset [ 1 ] . useBuiltIns ) . to . equal ( 'usage' ) ;
@@ -1080,7 +1080,7 @@ describe('The config-generator function', () => {
1080
1080
1081
1081
const actualConfig = configGenerator ( config ) ;
1082
1082
1083
- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1083
+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
1084
1084
const babelLoader = jsRule . use . find ( loader => / b a b e l - l o a d e r / . test ( loader . loader ) ) ;
1085
1085
const babelEnvPreset = babelLoader . options . presets . find ( ( [ name ] ) => name === '@babel/preset-env' ) ;
1086
1086
expect ( babelEnvPreset [ 1 ] . useBuiltIns ) . to . equal ( false ) ;
@@ -1097,7 +1097,7 @@ describe('The config-generator function', () => {
1097
1097
1098
1098
const actualConfig = configGenerator ( config ) ;
1099
1099
1100
- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1100
+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
1101
1101
const babelLoader = jsRule . use . find ( loader => / b a b e l - l o a d e r / . test ( loader . loader ) ) ;
1102
1102
const babelEnvPreset = babelLoader . options . presets . find ( ( [ name ] ) => name === '@babel/preset-env' ) ;
1103
1103
expect ( babelEnvPreset [ 1 ] . useBuiltIns ) . to . equal ( 'usage' ) ;
0 commit comments