diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2023-02-09 17:04:59 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-02-22 20:03:04 +0000 |
commit | abcb702168de5da73e99a56879fe347fdc63d488 (patch) | |
tree | 3f355512f20046b5b396cd4a02210dd57cc18451 | |
parent | 4278fd9978bfcf256d7308750ec835a70c3f6b40 (diff) | |
download | sonarqube-abcb702168de5da73e99a56879fe347fdc63d488.tar.gz sonarqube-abcb702168de5da73e99a56879fe347fdc63d488.zip |
[NO-JIRA] Adjust our supported browser list
-rw-r--r-- | server/sonar-web/config/utils.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/server/sonar-web/config/utils.js b/server/sonar-web/config/utils.js index 9c96747fb11..39a04a04a77 100644 --- a/server/sonar-web/config/utils.js +++ b/server/sonar-web/config/utils.js @@ -85,10 +85,12 @@ function importAsGlobals(mapping) { module.exports = { getCustomProperties, importAsGlobals, - /* NOTE: esbuild will transpile the _syntax_ down to what the TARGET_BROWSERS understand. */ - /* It will _not_, however, polyfill missing API methods, such as String.prototype.replaceAll */ - /* This is why we also import core-js. */ - ESBUILD_TARGET_BROWSERS: ['chrome58', 'firefox57', 'safari11', 'edge18'], - /* */ - AUTOPREFIXER_BROWSER_LIST: ['chrome>=58', 'firefox>=57', 'safari>=11', 'edge>=18'] + // NOTE: esbuild will transpile the _syntax_ down to what the TARGET_BROWSERS understand. + // It will _not_, however, polyfill missing API methods, such as String.prototype.replaceAll + // This is why we also import core-js. + // + // This browser version list is based on our requirements to support ES6 + // and javascript module via script tag (See https://caniuse.com/?search=modules%20es6) + ESBUILD_TARGET_BROWSERS: ['chrome61', 'firefox60', 'safari11', 'edge18'], + AUTOPREFIXER_BROWSER_LIST: ['chrome>=61', 'firefox>=60', 'safari>=11', 'edge>=18'], }; |