diff --git a/frontend/package.json b/frontend/package.json index f0091c6..39d2a46 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -29,7 +29,6 @@ "react-scripts": "5.0.1", "rimraf": "^5.0.5", "typescript": "^5.2.2", - "web-vitals": "^4.2.1", "workbox-background-sync": "^7.1.0", "workbox-broadcast-update": "^7.1.0", "workbox-cacheable-response": "^7.1.0", diff --git a/frontend/src/reportWebVitals.ts b/frontend/src/reportWebVitals.ts deleted file mode 100644 index 49a2a16..0000000 --- a/frontend/src/reportWebVitals.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ReportHandler } from 'web-vitals'; - -const reportWebVitals = (onPerfEntry?: ReportHandler) => { - if (onPerfEntry && onPerfEntry instanceof Function) { - import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => { - getCLS(onPerfEntry); - getFID(onPerfEntry); - getFCP(onPerfEntry); - getLCP(onPerfEntry); - getTTFB(onPerfEntry); - }); - } -}; - -export default reportWebVitals; diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 2604b52..0dfa9de 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -9991,7 +9991,7 @@ wbuf@^1.1.0, wbuf@^1.7.3: dependencies: minimalistic-assert "^1.0.0" -web-vitals@^4.0.1, web-vitals@^4.2.0: +web-vitals@^4.0.1: version "4.2.1" resolved "https://registry.yarnpkg.com/web-vitals/-/web-vitals-4.2.1.tgz#67eec387ddd0ef4c25574a01ab9dae723eee2b97" integrity sha512-U6bAxeudnhDqcXNl50JC4hLlqox9DZnngxfISZm3DMZnonW35xtJOVUc091L+DOY+6hVZVpKXoiCP0RiT6339Q==