diff options
| author | 2023-11-03 21:17:06 +0800 | |
|---|---|---|
| committer | 2023-11-03 21:17:06 +0800 | |
| commit | 94071d7ce16c56641d67d488e2bac6be84ffe731 (patch) | |
| tree | d837b71575aba805e18b3db3d056a106d81818fe /examples/with-create-react-app/apps/web/src/reportWebVitals.ts | |
| parent | 9f0d43fe099a95ab1516ae951dcb60a89e76a5a5 (diff) | |
| download | HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.tar.gz HydroRoll-94071d7ce16c56641d67d488e2bac6be84ffe731.zip | |
chore: delete useless files
Diffstat (limited to 'examples/with-create-react-app/apps/web/src/reportWebVitals.ts')
| -rw-r--r-- | examples/with-create-react-app/apps/web/src/reportWebVitals.ts | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/with-create-react-app/apps/web/src/reportWebVitals.ts b/examples/with-create-react-app/apps/web/src/reportWebVitals.ts deleted file mode 100644 index 5fa3583..0000000 --- a/examples/with-create-react-app/apps/web/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; |
