Commit 74b1e1bd authored by Robert Knight's avatar Robert Knight

Replace babel-preset-es2015 with babel-preset-env

This adds support for transpiling newer JS language features (ES2016+) and will
make it easier to update going forwards.

Decisions over what features to transpile for backwards compatibility
are controlled by browser coverage queries. See the browserslist docs [1] for
details of the query format.

[1] https://github.com/browserslist/browserslist
parent 9413dc7f
{
"presets": ["es2015"],
"presets": [
["env", {
"targets": {
"browsers": ["> 0.3%"]
}
}]
],
"ignore": "**/vendor/*"
}
......@@ -17,7 +17,7 @@
"autofill-event": "0.0.1",
"autoprefixer": "^9.4.7",
"aws-sdk": "^2.345.0",
"babel-preset-es2015": "^6.24.0",
"babel-preset-env": "^1.7.0",
"babelify": "^7.3.0",
"browserify": "^16.2.3",
"browserify-istanbul": "^2.0.0",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment