Skip to content

Commit

Permalink
chore: remove polyfills we no longer need (#4221)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelgerber authored Nov 26, 2024
1 parent 5edb37a commit 805bcbc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions site/SiteConstants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@ import {

// See https://cdnjs.cloudflare.com/polyfill/ for a list of all supported features
const polyfillFeatures = [
"es2019", // Array.flat, Array.flatMap, Object.fromEntries, ...
"es2020", // String.matchAll, Promise.allSettled, ...
"es2021", // String.replaceAll, Promise.any, ...
"es2022", // Array.at, String.at, ...
"es2023", // Array.findLast, Array.toReversed, Array.toSorted, Array.with, ...
"IntersectionObserver",
"IntersectionObserverEntry",
"ResizeObserver",
"globalThis", // some dependencies use this
]
const POLYFILL_VERSION = "4.8.0"
export const POLYFILL_URL: string = `https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=${POLYFILL_VERSION}&features=${polyfillFeatures.join(
Expand Down

0 comments on commit 805bcbc

Please sign in to comment.