Skip to content

Commit 6b5315c

Browse files
authored
chore: remove regenerator-runtime dependency and update react-intersection-observer to 9.11.0 (#3247)
## Remove regenerator-runtime dependency ### Summary Removes obsolete `regenerator-runtime` dependency that's no longer needed with our modern Vite + ESNext build setup. ### Changes - ❌ Remove `regenerator-runtime` dependency and import - ⬆️ Update `react-intersection-observer` to `^9.11.0` ### Why? - Our TypeScript targets `ESNext` and browserslist targets modern browsers - Vite handles necessary polyfills automatically - No generator functions used in codebase - Modern browsers support async/await natively ### Impact - Smaller bundle size - One less dependency to maintain - No breaking changes <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - No user-facing features added. - Refactor - Removed legacy polyfill import to streamline app initialization. - Chores - Upgraded react-intersection-observer to ^9.11.0. - Removed regenerator-runtime dependency to reduce bundle overhead. - Impact - Slightly faster startup and smaller bundle size. - No changes to public APIs or user workflows. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent eaef88a commit 6b5315c

File tree

3 files changed

+8
-15
lines changed

3 files changed

+8
-15
lines changed

webapp/package-lock.json

Lines changed: 7 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webapp/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,14 @@
4545
"react-google-recaptcha-v3": "1.9.5",
4646
"react-gtm-module": "^2.0.11",
4747
"react-helmet": "^6.1.0",
48-
"react-intersection-observer": "^9.10.1",
48+
"react-intersection-observer": "^9.11.0",
4949
"react-list": "^0.8.17",
5050
"react-markdown": "^8.0.4",
5151
"react-qr-code": "^2.0.7",
5252
"react-query": "^3.39.3",
5353
"react-router-dom": "^5.2.0",
5454
"recharts": "2.1.9",
5555
"reflect-metadata": "^0.1.13",
56-
"regenerator-runtime": "^0.13.9",
5756
"sockjs-client": "^1.6.1",
5857
"use-context-selector": "^1.3.9",
5958
"use-debounce": "^10.0.0",

webapp/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { QueryClientProvider } from 'react-query';
1414
import { BrowserRouter } from 'react-router-dom';
1515
import { SnackbarProvider } from 'notistack';
1616
import 'reflect-metadata';
17-
import 'regenerator-runtime/runtime';
1817

1918
import { GlobalLoading, LoadingProvider } from 'tg.component/GlobalLoading';
2019
import { GlobalErrorModal } from 'tg.component/GlobalErrorModal';

0 commit comments

Comments
 (0)