Move browserslist targets to new file and change targets

Make targets consistent with Mobile Frontend's .babelrc
and put them into a .browserslistrc file.

This did not change the build files.

Change-Id: Ic4fe13c9e4423d4bb5e6da5fce9039d04a9a215f
This commit is contained in:
Nicholas Ray 2019-02-11 17:37:03 -07:00
parent 5752b3feb1
commit 53001bee4c
2 changed files with 18 additions and 19 deletions

View file

@ -1,21 +1,3 @@
{ {
"presets": [ "presets": ["@babel/preset-env"]
[
"@babel/preset-env",
{
// See modern tier: https://www.mediawiki.org/wiki/Compatibility#Browser_support_matrix
"targets": {
// https://en.wikipedia.org/wiki/Google_Chrome_version_history
"chrome": "64",
"ie": "11",
// https://en.wikipedia.org/wiki/Firefox_version_history
"firefox": "58",
"safari": "5.1",
"opera": "15",
"ios": "6.1",
"android": "4.1"
}
}
]
]
} }

17
.browserslistrc Normal file
View file

@ -0,0 +1,17 @@
# See Grade A in resource loader startup module mediawikicore resources/src/startup/startup.js
# https//en.wikipedia.org/wiki/Google_Chrome_version_history
chrome 13
ie 11
# https//en.wikipedia.org/wiki/Firefox_version_history
firefox 4.0
safari 5.0
opera 15
ios 6.0
android 4.1