Use babel-preset-env
This commit is contained in:
parent
98e3bd0ca2
commit
2cfc9119cb
@ -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",
|
||||
|
@ -37,7 +37,11 @@ let config = {
|
||||
loader: "babel-loader",
|
||||
options: {
|
||||
presets: [
|
||||
"es2015"
|
||||
["env", {
|
||||
targets: {
|
||||
browsers: "last 2 versions"
|
||||
}
|
||||
}]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user