(metric: PerformanceMetric)
| 23 | } |
| 24 | |
| 25 | function report(metric: PerformanceMetric): void { |
| 26 | if (process.env.NODE_ENV === "development") { |
| 27 | // eslint-disable-next-line no-console |
| 28 | console.debug("[perf]", metric.name, metric.value.toFixed(1), metric.rating ?? ""); |
| 29 | } |
| 30 | sink(metric); |
| 31 | } |
| 32 | |
| 33 | // ─── Core Web Vitals ──────────────────────────────────────────────────────── |
| 34 |
no test coverage detected