update webpack babel config for webpack 4.x | babel-loader 8.x… (#2497)
This commit is contained in:
parent
615a9364f0
commit
720cccf73a
2 changed files with 7 additions and 3 deletions
|
|
@ -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'
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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'
|
||||||
|
}
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue