File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const getArray = (source: ?Condition): Array<Condition> => {
38
38
return Array . isArray ( source ) ? source : [ source ] ;
39
39
} ;
40
40
41
- const include = ( config : ConfigType , ...includes : Array < Condition > ) => {
41
+ export const include = ( config : ConfigType , ...includes : Array < Condition > ) => {
42
42
const babel_loader : LoaderRule = getBabelLoader ( config . module . rules ) ;
43
43
44
44
const include_config = getArray ( babel_loader . include ) ;
@@ -57,7 +57,7 @@ const include = (config: ConfigType, ...includes: Array<Condition>) => {
57
57
return config ;
58
58
} ;
59
59
60
- const exclude = ( config : ConfigType , ...excludes : Array < Condition > ) => {
60
+ export const exclude = ( config : ConfigType , ...excludes : Array < Condition > ) => {
61
61
const babel_loader : LoaderRule = getBabelLoader ( config . module . rules ) ;
62
62
63
63
const exclude_config = getArray ( babel_loader . exclude ) ;
@@ -75,8 +75,3 @@ const exclude = (config: ConfigType, ...excludes: Array<Condition>) => {
75
75
76
76
return config ;
77
77
} ;
78
-
79
- module . exports = {
80
- include,
81
- exclude
82
- } ;
You can’t perform that action at this time.
0 commit comments