Use babel-preset-env

This commit is contained in:
Pavel Djundik 2017-04-22 00:27:18 +03:00
parent 98e3bd0ca2
commit 2cfc9119cb
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"
}
}]
]
}
}