Skip to content

Remove unused web-vitals CRA boilerplate - #1286

Merged
microbit-matt-hillsdon merged 1 commit into
mainfrom
remove-web-vitals
Aug 31, 2026
Merged

Remove unused web-vitals CRA boilerplate#1286
microbit-matt-hillsdon merged 1 commit into
mainfrom
remove-web-vitals

Conversation

@microbit-matt-hillsdon

Copy link
Copy Markdown
Collaborator

reportWebVitals() was called without a handler, so the guard meant web-vitals was never imported at runtime and nothing was measured. Leftover from Create React App; we've no plans to wire vitals into analytics, and if we did we'd use the current onCLS/onLCP/onINP API rather than this v1-era shim.

Mainly to take 5 major versions off the dependency dashboard!

reportWebVitals() was called without a handler, so the guard meant
web-vitals was never imported at runtime and nothing was measured.
Leftover from Create React App; we've no plans to wire vitals into
analytics, and if we did we'd use the current onCLS/onLCP/onINP API
rather than this v1-era shim.
@github-actions

Copy link
Copy Markdown

@microbit-matt-hillsdon
microbit-matt-hillsdon merged commit 8820ae0 into main Aug 31, 2026
2 checks passed
@microbit-matt-hillsdon
microbit-matt-hillsdon deleted the remove-web-vitals branch August 31, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant