From e8832d9410208c9ccfc276a7f25e03591ec1fbef Mon Sep 17 00:00:00 2001 From: Colin Rotherham Date: Tue, 31 Oct 2023 16:25:27 +0000 Subject: [PATCH] Workaround for Opera Mobile 73 compatibility data Opera Mobile has relaunched for Android using Chromium but the compatibility data still thinks lots of features are unsupported: ``` The es-shims polyfill added the following polyfills: Array.prototype.every { "opera_mobile":"73" } Array.prototype.indexOf { "opera_mobile":"73" } Array.prototype.keys { "opera_mobile":"73" } Date.now { "opera_mobile":"73" } Function.prototype.name { "opera_mobile":"73" } Object.entries { "opera_mobile":"73" } String.prototype.split { "opera_mobile":"73" } String.prototype.trim { "opera_mobile":"73" } ``` See related issues: https://github.com/browserslist/browserslist/issues/766 https://github.com/babel/babel/issues/15711 --- packages/govuk-frontend/.browserslistrc | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/govuk-frontend/.browserslistrc b/packages/govuk-frontend/.browserslistrc index 7185d16c8e..8a4a65a527 100644 --- a/packages/govuk-frontend/.browserslistrc +++ b/packages/govuk-frontend/.browserslistrc @@ -3,6 +3,7 @@ [javascripts] supports es6-module +not OperaMobile > 0 [stylesheets] > 0.1% in GB and not dead