Skip to content

Commit 01752aa

Browse files
committed
Cleans up umd build config.
1 parent c037650 commit 01752aa

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tools/webpack/configFactory.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ function webpackConfigFactory({ target }) {
1515
},
1616
output: {
1717
path: resolvePath(appRootDir.get(), './umd'),
18-
filename: target === 'umd' ? `${libraryName}.js` : `${libraryName}.min.js`,
18+
filename: target === 'umd'
19+
? `${libraryName}.js`
20+
: `${libraryName}.min.js`,
1921
library: 'ReactAsyncComponent',
2022
libraryTarget: 'umd',
2123
},
@@ -63,13 +65,7 @@ function webpackConfigFactory({ target }) {
6365
{
6466
test: /\.js$/,
6567
loader: 'babel-loader',
66-
include: [
67-
resolvePath(appRootDir.get(), './src'),
68-
resolvePath(appRootDir.get(), './node_modules/p-limit'),
69-
resolvePath(appRootDir.get(), './node_modules/p-locate'),
70-
resolvePath(appRootDir.get(), './node_modules/p-map-series'),
71-
resolvePath(appRootDir.get(), './node_modules/p-reduce'),
72-
],
68+
include: [resolvePath(appRootDir.get(), './src')],
7369
},
7470
],
7571
},

0 commit comments

Comments
 (0)