build: Add and use 'browserslist-config-wikimedia'

Use central, shareable `browserslist-config-wikimedia/modern` config.

Bug: T282937
Change-Id: I72b38cba2028eab0b67543d066c341b76b91b5bb
This commit is contained in:
Volker E 2021-05-19 11:19:34 -07:00
parent 1c3a6fa458
commit 21d49d3de1
3 changed files with 13 additions and 16 deletions

View file

@ -1,17 +1,7 @@
# See Grade A in resource loader startup module mediawikicore resources/src/startup/startup.js
# Browserslist configuration of browsers with basic level of support.
# Please see https://www.mediawiki.org/wiki/Compatibility#Mobile and
# https://github.com/wikimedia/browserslist-config-wikimedia/
# See also browsers definition in ResourceLoader startup module
# in MediaWiki core '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
extends browserslist-config-wikimedia/modern

6
package-lock.json generated
View file

@ -5162,6 +5162,12 @@
"node-releases": "^1.1.71"
}
},
"browserslist-config-wikimedia": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/browserslist-config-wikimedia/-/browserslist-config-wikimedia-0.2.0.tgz",
"integrity": "sha512-vIF9Nk1eAgvTAmY3mXUQ67rHIMFla4DsM5ohOt7AgUw/2YsNNnNFdRdDW7CI46FWdjexbeM9uW30Y/vwQTts6Q==",
"dev": true
},
"bser": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz",

View file

@ -42,6 +42,7 @@
"@wdio/sync": "6.3.3",
"@wikimedia/mw-node-qunit": "6.1.0",
"babel-loader": "8.0.4",
"browserslist-config-wikimedia": "0.2.0",
"bundlesize": "0.18.0",
"clean-webpack-plugin": "3.0.0",
"cssjanus": "1.3.1",