File tree 1 file changed +3
-5
lines changed 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -12,22 +12,20 @@ import { safeClone } from './utils';
12
12
13
13
const defaultExclude = [ 'plugins' ] ;
14
14
15
- const createDefaultMapper = ( { exclude } ) => parentConfig => {
16
- return omit ( parentConfig , exclude ) ;
17
- } ;
15
+ const createDefaultMapper = exclude => parentConfig => omit ( parentConfig , exclude ) ;
18
16
19
17
const createMapper = inherit => {
20
18
if ( isFunction ( inherit ) ) {
21
19
return inherit ;
22
20
}
23
21
24
22
if ( isPlainObject ( inherit ) ) {
25
- let exclude = isArray ( inherit . exclude ) ? inherit . exclude : defaultExclude ;
23
+ const exclude = isArray ( inherit . exclude ) ? inherit . exclude : defaultExclude ;
26
24
return createDefaultMapper ( exclude ) ;
27
25
}
28
26
29
27
if ( inherit === true ) {
30
- return createDefaultMapper ( { exclude : defaultExclude } ) ;
28
+ return createDefaultMapper ( defaultExclude ) ;
31
29
}
32
30
33
31
// do not inherit
You can’t perform that action at this time.
0 commit comments