Moved babel config back out into .babelrc

This is due to .babelrc being used for other tooling.
This commit is contained in:
orangemug 2018-10-09 20:45:03 +01:00
parent 36e35eb208
commit 92a1be83b6
2 changed files with 20 additions and 22 deletions

19
.babelrc Normal file
View file

@ -0,0 +1,19 @@
{
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"react-hot-loader/babel",
"@babel/plugin-proposal-class-properties"
],
"env": {
"test": {
"plugins": [
["istanbul", {
"exclude": ["node_modules/**", "test/**"]
}]
]
}
}
}

View file

@ -6,28 +6,7 @@ module.exports = [
exclude: [
path.resolve(__dirname, '../node_modules')
],
use: {
loader: 'babel-loader',
options: {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
],
"plugins": [
"react-hot-loader/babel",
"@babel/plugin-proposal-class-properties"
],
"env": {
"test": {
"plugins": [
["istanbul", {
"exclude": ["node_modules/**", "test/**"]
}]
]
}
}
}
}
use: 'babel-loader'
},
{
test: /\.(eot|ttf|woff|woff2)$/,