From 4d66e42708d8668013dca1854c7714f214b14025 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 10 Jan 2023 11:59:25 +0100 Subject: [PATCH] web: add core-js polyfill for safari sigh Signed-off-by: Jens Langhammer --- web/package-lock.json | 16 ++++++++++++++++ web/package.json | 1 + web/src/polyfill/poly.ts | 1 + 3 files changed, 18 insertions(+) diff --git a/web/package-lock.json b/web/package-lock.json index 36d5f2a9a..81507598e 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -53,6 +53,7 @@ "chartjs-adapter-moment": "^1.0.1", "codemirror": "^6.0.1", "construct-style-sheets-polyfill": "^3.1.0", + "core-js": "^3.27.1", "country-flag-icons": "^1.5.5", "eslint": "^8.31.0", "eslint-config-google": "^0.14.0", @@ -4531,6 +4532,16 @@ "node": ">=0.10.0" } }, + "node_modules/core-js": { + "version": "3.27.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.27.1.tgz", + "integrity": "sha512-GutwJLBChfGCpwwhbYoqfv03LAfmiz7e7D/BNxzeMxwQf10GRSzqiOjx7AmtEk+heiD/JWmBuyBPgFtx0Sg1ww==", + "hasInstallScript": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, "node_modules/core-js-compat": { "version": "3.25.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.1.tgz", @@ -13345,6 +13356,11 @@ "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=" }, + "core-js": { + "version": "3.27.1", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.27.1.tgz", + "integrity": "sha512-GutwJLBChfGCpwwhbYoqfv03LAfmiz7e7D/BNxzeMxwQf10GRSzqiOjx7AmtEk+heiD/JWmBuyBPgFtx0Sg1ww==" + }, "core-js-compat": { "version": "3.25.1", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.25.1.tgz", diff --git a/web/package.json b/web/package.json index 4b5c45895..1ba9e9b18 100644 --- a/web/package.json +++ b/web/package.json @@ -97,6 +97,7 @@ "chartjs-adapter-moment": "^1.0.1", "codemirror": "^6.0.1", "construct-style-sheets-polyfill": "^3.1.0", + "core-js": "^3.27.1", "country-flag-icons": "^1.5.5", "eslint": "^8.31.0", "eslint-config-google": "^0.14.0", diff --git a/web/src/polyfill/poly.ts b/web/src/polyfill/poly.ts index 6afe749e8..4dfe1a292 100644 --- a/web/src/polyfill/poly.ts +++ b/web/src/polyfill/poly.ts @@ -3,6 +3,7 @@ window["polymerSkipLoadingFontRoboto"] = true; import "construct-style-sheets-polyfill"; import "@webcomponents/webcomponentsjs"; import "lit/polyfill-support.js"; +import "core-js/actual"; import "@formatjs/intl-listformat/polyfill.js"; import "@formatjs/intl-listformat/locale-data/en.js";