Skip to content

Commit 18ea8ff

Browse files
authored
Merge pull request #104 from xsnippet/webpack-remove-babel-hack
Do not pass node_modules to Babel
2 parents 3c04491 + b8dc808 commit 18ea8ff

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

webpack.config.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -154,16 +154,7 @@ module.exports = () => {
154154
// Transpile ES2015+ down to ES5.
155155
{
156156
test: /\.jsx?$/,
157-
include: [
158-
path.resolve(__dirname, 'src'),
159-
// Joi and its dependencies are not distributed as ES5 code, so
160-
// we need to transpile them as well; otherwise, UglifyJS will
161-
// fail to minify the sources.
162-
path.resolve(__dirname, 'node_modules', 'joi'),
163-
path.resolve(__dirname, 'node_modules', 'hoek'),
164-
path.resolve(__dirname, 'node_modules', 'topo'),
165-
path.resolve(__dirname, 'node_modules', 'isemail'),
166-
],
157+
include: path.resolve(__dirname, 'src'),
167158
use: ['babel-loader'],
168159
},
169160

0 commit comments

Comments
 (0)