aboutsummaryrefslogtreecommitdiff
path: root/src/reportWebVitals.ts
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-22 20:23:22 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-07-22 20:23:22 +0530
commit55c5f64755e5d964603f4cc60bdf1ceeccf7df21 (patch)
tree54af4d034c43ac2755892b7a8d463c8e20b30c98 /src/reportWebVitals.ts
parent39093b0522c0f153f7f212c6b3088b359d5cb114 (diff)
removed typescript "bloat"
Diffstat (limited to 'src/reportWebVitals.ts')
-rw-r--r--src/reportWebVitals.ts15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/reportWebVitals.ts b/src/reportWebVitals.ts
deleted file mode 100644
index 49a2a16..0000000
--- a/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;