web-vitals удалён

This commit is contained in:
Александр Сироткин 2022-11-05 03:20:21 +05:00
parent a0e488389b
commit 683ccb1c03
3 changed files with 1 additions and 25 deletions

13
package-lock.json generated
View File

@ -17,8 +17,7 @@
"react-dom": "^18.1.0",
"react-router-dom": "^6.3.0",
"rxjs": "^7.5.5",
"usehooks-ts": "^2.6.0",
"web-vitals": "^2.1.4"
"usehooks-ts": "^2.6.0"
},
"devDependencies": {
"@babel/core": "^7.18.2",
@ -14786,11 +14785,6 @@
"minimalistic-assert": "^1.0.0"
}
},
"node_modules/web-vitals": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz",
"integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg=="
},
"node_modules/webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
@ -26492,11 +26486,6 @@
"minimalistic-assert": "^1.0.0"
}
},
"web-vitals": {
"version": "2.1.4",
"resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-2.1.4.tgz",
"integrity": "sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg=="
},
"webidl-conversions": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",

View File

@ -1 +0,0 @@
/// <reference types="react-scripts" />

View File

@ -1,12 +0,0 @@
import { getCLS, getFID, getFCP, getLCP, getTTFB, ReportHandler } from 'web-vitals'
export const reportWebVitals = (onPerfEntry?: ReportHandler) => {
if (!onPerfEntry) return
getCLS(onPerfEntry)
getFID(onPerfEntry)
getFCP(onPerfEntry)
getLCP(onPerfEntry)
getTTFB(onPerfEntry)
}
export default reportWebVitals