diff options
author | 2024-05-18 16:33:14 +0200 | |
---|---|---|
committer | 2024-05-18 16:33:14 +0200 | |
commit | 3c7a4fabea5ebb0e8f79742731415136ae3da9a6 (patch) | |
tree | 990e7fd307222bd4f938d65c3388327438367570 /packages/integrations/web-vitals/src/client-script.ts | |
parent | b41cec623449e03195b3010a81abe384f80bebb5 (diff) | |
download | astro-3c7a4fabea5ebb0e8f79742731415136ae3da9a6.tar.gz astro-3c7a4fabea5ebb0e8f79742731415136ae3da9a6.tar.zst astro-3c7a4fabea5ebb0e8f79742731415136ae3da9a6.zip |
Upgrade `web-vitals` to v4 (#11094)
Diffstat (limited to 'packages/integrations/web-vitals/src/client-script.ts')
-rw-r--r-- | packages/integrations/web-vitals/src/client-script.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/web-vitals/src/client-script.ts b/packages/integrations/web-vitals/src/client-script.ts index b69fa6772..86591745e 100644 --- a/packages/integrations/web-vitals/src/client-script.ts +++ b/packages/integrations/web-vitals/src/client-script.ts @@ -1,4 +1,4 @@ -import { type Metric, onCLS, onFCP, onFID, onINP, onLCP, onTTFB } from 'web-vitals'; +import { type Metric, onCLS, onFCP, onINP, onLCP, onTTFB } from 'web-vitals'; import { WEB_VITALS_ENDPOINT_PATH } from './constants.js'; import type { ClientMetric } from './schemas.js'; @@ -26,7 +26,7 @@ function flushQueue() { queue.clear(); } -for (const listener of [onCLS, onLCP, onINP, onFID, onFCP, onTTFB]) { +for (const listener of [onCLS, onLCP, onINP, onFCP, onTTFB]) { listener(addToQueue); } |