Set babel-preset-env into UglifyJS compatability mode

This commit is contained in:
Rouven Weßling 2018-11-12 17:12:47 +01:00 committed by Zeno Rocha
parent 3522504d34
commit 6802a86f60
2 changed files with 7 additions and 7 deletions

View File

@ -1,3 +1,7 @@
{ {
"presets": ["env"] "presets": [["env", {
"targets": {
"uglify": true
}
}]]
} }

View File

@ -18,7 +18,7 @@
"devDependencies": { "devDependencies": {
"babel-core": "^6.26.0", "babel-core": "^6.26.0",
"babel-loader": "^7.1.4", "babel-loader": "^7.1.4",
"babel-preset-env": "^1.6.1", "babel-preset-env": "^1.7.0",
"chai": "^4.2.0", "chai": "^4.2.0",
"cross-env": "^5.2.0", "cross-env": "^5.2.0",
"karma": "^3.1.1", "karma": "^3.1.1",
@ -41,9 +41,5 @@
"build-watch": "webpack --watch", "build-watch": "webpack --watch",
"test": "karma start --single-run", "test": "karma start --single-run",
"prepublish": "npm run build" "prepublish": "npm run build"
}, }
"browserslist": [
"> 1%",
"last 2 versions"
]
} }