Skip to content

Commit 901c797

Browse files
Remove unused web-vitals CRA boilerplate
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.
1 parent 5531f79 commit 901c797

4 files changed

Lines changed: 0 additions & 34 deletions

File tree

package-lock.json

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"vite": "^7.3.1",
5858
"vscode-jsonrpc": "^9.0.0",
5959
"vscode-languageserver-protocol": "^3.16.0",
60-
"web-vitals": "^1.1.1",
6160
"xterm": "4.19.0",
6261
"xterm-addon-fit": "^0.5.0"
6362
},

src/index.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import "./layers.css";
1010
import { StrictMode } from "react";
1111
import { createRoot } from "react-dom/client";
1212
import App from "./App";
13-
import reportWebVitals from "./reportWebVitals";
1413
import { registerSW } from "virtual:pwa-register";
1514
import { flags } from "./flags";
1615
import { baseUrl } from "./base";
@@ -70,8 +69,3 @@ root.render(
7069
<App />
7170
</StrictMode>
7271
);
73-
74-
// If you want to start measuring performance in your app, pass a function
75-
// to log results (for example: reportWebVitals(console.log))
76-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
77-
reportWebVitals();

src/reportWebVitals.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)