[Dev] Add polyfill for ES2025 iterator (#6654)

This commit is contained in:
Sirz Benjie 2025-10-12 21:46:09 -05:00 committed by GitHub
parent 73e8c6c160
commit 0fdcb97575
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 21 additions and 2 deletions

View File

@ -66,6 +66,7 @@
"dependencies": {
"@material/material-color-utilities": "^0.3.0",
"compare-versions": "^6.1.1",
"core-js": "^3.46.0",
"crypto-js": "^4.2.0",
"i18next": "^25.5.3",
"i18next-browser-languagedetector": "^8.2.0",

View File

@ -14,6 +14,9 @@ importers:
compare-versions:
specifier: ^6.1.1
version: 6.1.1
core-js:
specifier: ^3.46.0
version: 3.46.0
crypto-js:
specifier: ^4.2.0
version: 4.2.0
@ -961,6 +964,9 @@ packages:
resolution: {integrity: sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==}
engines: {node: '>= 0.6'}
core-js@3.46.0:
resolution: {integrity: sha512-vDMm9B0xnqqZ8uSBpZ8sNtRtOdmfShrvT6h2TuQGLs0Is+cR0DYbj/KWP6ALVNbWPpqA/qPLoOuppJN07humpA==}
core-util-is@1.0.3:
resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
@ -2800,6 +2806,8 @@ snapshots:
cookie@0.7.2: {}
core-js@3.46.0: {}
core-util-is@1.0.3: {}
cross-fetch@4.0.0:

View File

@ -1,5 +1,5 @@
/*
Manual rolling of polyfills desired by the project.
Manual rolling or other polyfills desired by the project.
IMPORTANT: When adding / removing polyfills, ensure that typescript becomes
aware of their existence, either by creating `src/typings/polyfills.d.ts`
@ -19,3 +19,8 @@ if (typeof Promise.withResolvers === "undefined") {
return { promise, resolve, reject };
};
}
import "core-js/stable/set";
import "core-js/stable/iterator";
import "core-js/stable/map/group-by";
import "core-js/stable/object/group-by";

View File

@ -16,7 +16,12 @@
"DOM.AsyncIterable",
"DOM.Iterable",
"ScriptHost",
"WebWorker.ImportScripts"
"WebWorker.ImportScripts",
"ES2024.Object",
// NOTE: Be *very* mindful of these when updating typescript versions,
// as their definitions may change in breaking ways
"ESNext.Iterator",
"ESNext.Collection"
],
"skipLibCheck": true, // Safe and almost always beneficial
"moduleResolution": "bundler",