update webpack babel config for webpack 4.x | babel-loader 8.x… (#2497)

This commit is contained in:
Saxon Stiller 2019-07-31 21:15:44 -06:00 committed by Isiah Meadows
parent 615a9364f0
commit 720cccf73a
2 changed files with 7 additions and 3 deletions

View file

@ -115,10 +115,12 @@ module.exports = {
filename: 'app.js', filename: 'app.js',
}, },
module: { module: {
loaders: [{ rules: [{
test: /\.js$/, test: /\.js$/,
exclude: /\/node_modules\//, exclude: /\/node_modules\//,
loader: 'babel-loader' use: {
loader: 'babel-loader'
}
}] }]
} }
} }

View file

@ -127,7 +127,9 @@ module.exports = {
rules: [{ rules: [{
test: /\.js$/, test: /\.js$/,
exclude: /\/node_modules\//, exclude: /\/node_modules\//,
loader: 'babel-loader' use: {
loader: 'babel-loader'
}
}] }]
} }
} }