@@ -670,7 +670,7 @@ describe('The config-generator function', () => {
670670
671671 const actualConfig = configGenerator ( config ) ;
672672
673- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
673+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
674674
675675 // check for the default env preset only
676676 expect ( JSON . stringify ( jsRule . use [ 0 ] . options . presets ) ) . contains ( '@babel/preset-env' ) ;
@@ -1011,7 +1011,7 @@ describe('The config-generator function', () => {
10111011
10121012 const actualConfig = configGenerator ( config ) ;
10131013
1014- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1014+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
10151015 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 ) / ) ) ;
10161016
10171017 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', () => {
10301030
10311031 const actualConfig = configGenerator ( config ) ;
10321032
1033- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1033+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
10341034 expect ( String ( jsRule . exclude ) ) . to . equal ( String ( / f o o / ) ) ;
10351035 } ) ;
10361036
@@ -1045,7 +1045,7 @@ describe('The config-generator function', () => {
10451045
10461046 const actualConfig = configGenerator ( config ) ;
10471047
1048- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1048+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
10491049 expect ( jsRule . exclude ) . to . be . a ( 'Function' ) ;
10501050 expect ( jsRule . exclude ( path . join ( 'test' , 'node_modules' , 'foo' , 'index.js' ) ) ) . to . be . false ;
10511051 expect ( jsRule . exclude ( path . join ( 'test' , 'node_modules' , 'bar' , 'index.js' ) ) ) . to . be . true ;
@@ -1063,7 +1063,7 @@ describe('The config-generator function', () => {
10631063
10641064 const actualConfig = configGenerator ( config ) ;
10651065
1066- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1066+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
10671067 const babelLoader = jsRule . use . find ( loader => / b a b e l - l o a d e r / . test ( loader . loader ) ) ;
10681068 const babelEnvPreset = babelLoader . options . presets . find ( ( [ name ] ) => name === '@babel/preset-env' ) ;
10691069 expect ( babelEnvPreset [ 1 ] . useBuiltIns ) . to . equal ( 'usage' ) ;
@@ -1080,7 +1080,7 @@ describe('The config-generator function', () => {
10801080
10811081 const actualConfig = configGenerator ( config ) ;
10821082
1083- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1083+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
10841084 const babelLoader = jsRule . use . find ( loader => / b a b e l - l o a d e r / . test ( loader . loader ) ) ;
10851085 const babelEnvPreset = babelLoader . options . presets . find ( ( [ name ] ) => name === '@babel/preset-env' ) ;
10861086 expect ( babelEnvPreset [ 1 ] . useBuiltIns ) . to . equal ( false ) ;
@@ -1097,7 +1097,7 @@ describe('The config-generator function', () => {
10971097
10981098 const actualConfig = configGenerator ( config ) ;
10991099
1100- const jsRule = findRule ( / \. ( j s x ? ) $ / , actualConfig . module . rules ) ;
1100+ const jsRule = findRule ( / \. ( m ? j s x ? ) $ / , actualConfig . module . rules ) ;
11011101 const babelLoader = jsRule . use . find ( loader => / b a b e l - l o a d e r / . test ( loader . loader ) ) ;
11021102 const babelEnvPreset = babelLoader . options . presets . find ( ( [ name ] ) => name === '@babel/preset-env' ) ;
11031103 expect ( babelEnvPreset [ 1 ] . useBuiltIns ) . to . equal ( 'usage' ) ;
0 commit comments