Merge pull request #1072 from thelounge/babel-env

Use babel-preset-env
This commit is contained in:
Jérémie Astori 2017-04-23 11:23:51 -04:00 committed by GitHub
commit 37bfd91944
2 changed files with 6 additions and 2 deletions

View File

@ -61,7 +61,7 @@
"devDependencies": {
"babel-core": "6.24.1",
"babel-loader": "7.0.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-env": "1.4.0",
"chai": "3.5.0",
"eslint": "3.19.0",
"font-awesome": "4.7.0",

View File

@ -37,7 +37,11 @@ let config = {
loader: "babel-loader",
options: {
presets: [
"es2015"
["env", {
targets: {
browsers: "last 2 versions"
}
}]
]
}
}