diff --git a/landing-page/package.json b/landing-page/package.json index 850cf6808..8f3de0126 100644 --- a/landing-page/package.json +++ b/landing-page/package.json @@ -8,8 +8,7 @@ "@types/react-dom": "^18.0.1", "lucide-react": "^0.468.0", "react": "^18.0.0", - "react-dom": "^18.0.0", - "web-vitals": "2.1.4" + "react-dom": "^18.0.0" }, "devDependencies": { "@vitejs/plugin-react": "^4.3.4", diff --git a/landing-page/src/index.tsx b/landing-page/src/index.tsx index fd4dddf9d..55860fd90 100644 --- a/landing-page/src/index.tsx +++ b/landing-page/src/index.tsx @@ -2,7 +2,6 @@ import { StrictMode } from 'react' import ReactDOM from 'react-dom/client' import './index.css' import { LandingPage } from './LandingPage' -import reportWebVitals from './reportWebVitals' const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement) root.render( @@ -10,8 +9,3 @@ root.render( , ) - -// If you want to start measuring performance in your app, pass a function -// to log results (for example: reportWebVitals(console.log)) -// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals -reportWebVitals() diff --git a/landing-page/src/reportWebVitals.ts b/landing-page/src/reportWebVitals.ts deleted file mode 100644 index 57a24a21e..000000000 --- a/landing-page/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/pnpm-lock.yaml b/pnpm-lock.yaml index 3c4c47b0e..2c1259a1b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -369,9 +369,6 @@ importers: react-dom: specifier: ^18.0.0 version: 18.3.1(react@18.3.1) - web-vitals: - specifier: 2.1.4 - version: 2.1.4 devDependencies: '@vitejs/plugin-react': specifier: ^4.3.4 @@ -7201,9 +7198,6 @@ packages: resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} engines: {node: '>= 8'} - web-vitals@2.1.4: - resolution: {integrity: sha512-sVWcwhU5mX6crfI5Vd2dC4qchyTqxV8URinzt25XqVh+bHEPGH4C3NPrNionCP7Obx59wrYEbNlw4Z8sjALzZg==} - webauthn-p256@0.0.10: resolution: {integrity: sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA==} @@ -9841,7 +9835,7 @@ snapshots: '@babel/plugin-syntax-typescript': 7.25.9(@babel/core@7.26.0) '@vanilla-extract/babel-plugin-debug-ids': 1.1.0 '@vanilla-extract/css': 1.16.1(babel-plugin-macros@3.1.0) - esbuild: 0.17.6 + esbuild: 0.17.19 eval: 0.1.8 find-up: 5.0.0 javascript-stringify: 2.1.0 @@ -15707,8 +15701,6 @@ snapshots: web-streams-polyfill@3.3.3: {} - web-vitals@2.1.4: {} - webauthn-p256@0.0.10: dependencies: '@noble/curves': 1.7.0