From 53001bee4c45a153a12e28bef71c8bf630d78bb2 Mon Sep 17 00:00:00 2001 From: Nicholas Ray Date: Mon, 11 Feb 2019 17:37:03 -0700 Subject: [PATCH] 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 --- .babelrc | 20 +------------------- .browserslistrc | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 19 deletions(-) create mode 100644 .browserslistrc diff --git a/.babelrc b/.babelrc index 3901f7fb1..526ddfd8d 100644 --- a/.babelrc +++ b/.babelrc @@ -1,21 +1,3 @@ { - "presets": [ - [ - "@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" - } - } - ] - ] + "presets": ["@babel/preset-env"] } diff --git a/.browserslistrc b/.browserslistrc new file mode 100644 index 000000000..49b7e303a --- /dev/null +++ b/.browserslistrc @@ -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