Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tunetheweb committed Oct 16, 2024
1 parent cc36dc2 commit bfc092f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/attribution/onINP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ const getIntersectingLoAFs = (
return intersectingLoAFs;
};

// Export to allow it to be used from dist if needed
// See https://github.com/GoogleChrome/web-vitals/pull/549
export const attributeINP = (metric: INPMetric): INPMetricWithAttribution => {
const firstEntry = metric.entries[0];
const group = entryToEntriesGroupMap.get(firstEntry)!;
Expand Down

0 comments on commit bfc092f

Please sign in to comment.