diff --git a/docs/browser-support.md b/docs/browser-support.md index 9b2e162cf5d..3b4a5f1701c 100644 --- a/docs/browser-support.md +++ b/docs/browser-support.md @@ -23,7 +23,7 @@ As of **2023-07-27**, we support the following browsers: ### Polyfills -We use polyfill.io (see `site/SiteConstants.ts`), so using modern methods like `str.replaceAll()` is fine as long as it's included in the list of polyfilled functions. +We use cdnjs.cloudflare.com/polyfill (see `site/SiteConstants.ts`), so using modern methods like `str.replaceAll()` is fine as long as it's included in the list of polyfilled functions. ### Setting the Vite `target` diff --git a/site/SiteConstants.ts b/site/SiteConstants.ts index 5c90cf94a50..e12a31a47a0 100644 --- a/site/SiteConstants.ts +++ b/site/SiteConstants.ts @@ -1,4 +1,4 @@ -// See https://polyfill.io/v3/url-builder/ for a list of all supported features +// See https://cdnjs.cloudflare.com/polyfill/v3/url-builder/ for a list of all supported features const polyfillFeatures = [ "es2019", // Array.flat, Array.flatMap, Object.fromEntries, ... "es2020", // String.matchAll, Promise.allSettled, ... @@ -9,6 +9,6 @@ const polyfillFeatures = [ "ResizeObserver", "globalThis", // some dependencies use this ] -export const POLYFILL_URL: string = `https://polyfill.io/v3/polyfill.min.js?features=${polyfillFeatures.join( +export const POLYFILL_URL: string = `https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?features=${polyfillFeatures.join( "," )}`