Skip to content

Commit b089dc5

Browse files
committed
Exclude node_modules from babel
1 parent 1398fdf commit b089dc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module.exports = [
2020
},
2121
module: {
2222
loaders: [
23-
{ test: /\.js$/, loader: 'babel-loader' },
23+
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' },
2424
],
2525
},
2626
},
@@ -33,7 +33,7 @@ module.exports = [
3333
},
3434
module: {
3535
loaders: [
36-
{ test: /\.js$/, loader: 'babel-loader' },
36+
{ test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader' },
3737
],
3838
},
3939
plugins: [uglifyJsPlugin],

0 commit comments

Comments
 (0)