Skip to content

Commit e5de012

Browse files
committed
export const
1 parent 76dca99 commit e5de012

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const getArray = (source: ?Condition): Array<Condition> => {
3838
return Array.isArray(source) ? source : [source];
3939
};
4040

41-
const include = (config: ConfigType, ...includes: Array<Condition>) => {
41+
export const include = (config: ConfigType, ...includes: Array<Condition>) => {
4242
const babel_loader: LoaderRule = getBabelLoader(config.module.rules);
4343

4444
const include_config = getArray(babel_loader.include);
@@ -57,7 +57,7 @@ const include = (config: ConfigType, ...includes: Array<Condition>) => {
5757
return config;
5858
};
5959

60-
const exclude = (config: ConfigType, ...excludes: Array<Condition>) => {
60+
export const exclude = (config: ConfigType, ...excludes: Array<Condition>) => {
6161
const babel_loader: LoaderRule = getBabelLoader(config.module.rules);
6262

6363
const exclude_config = getArray(babel_loader.exclude);
@@ -75,8 +75,3 @@ const exclude = (config: ConfigType, ...excludes: Array<Condition>) => {
7575

7676
return config;
7777
};
78-
79-
module.exports = {
80-
include,
81-
exclude
82-
};

0 commit comments

Comments
 (0)