File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -76,10 +76,9 @@ describe('loaders/babel', () => {
76
76
77
77
const actualLoaders = babelLoader . getLoaders ( config ) ;
78
78
79
- // transform-react-jsx & foo
80
- expect ( actualLoaders [ 0 ] . options . plugins ) . to . have . lengthOf ( 2 ) ;
81
79
expect ( actualLoaders [ 0 ] . options . plugins ) . to . deep . include . members ( [
82
- [ 'transform-react-jsx' , { pragma : 'h' } ] ,
80
+ '@babel/plugin-syntax-dynamic-import' ,
81
+ [ '@babel/plugin-transform-react-jsx' , { pragma : 'h' } ] ,
83
82
'foo'
84
83
] ) ;
85
84
} ) ;
@@ -94,10 +93,9 @@ describe('loaders/babel', () => {
94
93
95
94
const actualLoaders = babelLoader . getLoaders ( config ) ;
96
95
97
- // transform-react-jsx & foo
98
- expect ( actualLoaders [ 0 ] . options . plugins ) . to . have . lengthOf ( 2 ) ;
99
96
expect ( actualLoaders [ 0 ] . options . plugins ) . to . deep . include . members ( [
100
- [ 'transform-react-jsx' ] ,
97
+ '@babel/plugin-syntax-dynamic-import' ,
98
+ [ '@babel/plugin-transform-react-jsx' ] ,
101
99
'foo'
102
100
] ) ;
103
101
} ) ;
You can’t perform that action at this time.
0 commit comments