From a60232bef003f9ecff6cec183a4033c87965f2f8 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Mon, 7 Apr 2025 11:04:44 +0100 Subject: [PATCH] Apply polyfills only when unsupported --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index fbd9b1e..e31e324 100644 --- a/src/index.ts +++ b/src/index.ts @@ -67,6 +67,6 @@ export function isPolyfilled() { export function apply() { for (const polyfill of Object.values(polyfills)) { - polyfill.apply() + if (!polyfill.isSupported()) polyfill.apply() } }