Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] 성능 개선 : bundle main.js 용량 줄이기 #787

Merged
merged 17 commits into from
Oct 24, 2024
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
5394795
refactor: 랜딩 페이지 디렉토리 구조 변경 (#767)
jinhokim98 Oct 18, 2024
8f8a925
refactor: App을 제외한 페이지 컴포넌트 lazy loading
jinhokim98 Oct 23, 2024
2dcdb8b
refactor: QueryClient가 필요하지 않은 랜딩 페이지에서 tanstack-query script 제거
jinhokim98 Oct 23, 2024
c5f3c88
refactor: tree shaking을 deep하게 적용하기 위해 package.json에 sideEffects fals…
jinhokim98 Oct 23, 2024
ba9a7d8
feat: prod build 파일에서 sourcemap과 license 파일 제거
jinhokim98 Oct 23, 2024
56bf518
feat: 문의하기 페이지 구현 (#772)
soi-ha Oct 23, 2024
f98c0ea
refactor 성능 개선 : Preconnect to requered origins (#771)
soi-ha Oct 23, 2024
514a9a9
Merge branch 'fe-dev' of https://github.com/woowacourse-teams/2024-ha…
jinhokim98 Oct 23, 2024
519e278
refactor: 성능 개선 : 랜딩 페이지 이미지를 필요한 만큼만 불러오기 (#774)
jinhokim98 Oct 23, 2024
fc44763
refactor: 성능 개선 : Kakao script를 필요한 곳에서 다운로드 받기 (#776)
jinhokim98 Oct 23, 2024
ccf8327
refactor: v2.1.1에서 구현한 랜딩페이지 개선 (#777)
Todari Oct 23, 2024
86b36ca
fix: 이벤트 홈 페이지에 있을 땐 토큰이 있어도 지출 상세로 접근 불가하도록 수정 (#781)
jinhokim98 Oct 23, 2024
27e2ee3
fix: cypress에서는 sideEffects를 tree shaking하지 않음
jinhokim98 Oct 23, 2024
1871cd4
refactor: 성능 개선 : Serve images in next-gen formats (#784)
pakxe Oct 23, 2024
1306d4d
feat: QR코드로 초대하기 기능 추가 (#783)
soi-ha Oct 23, 2024
90c1016
chore: fe-dev와 충돌 해결
jinhokim98 Oct 23, 2024
bd5b111
chore: fe-dev와 충돌 해결
jinhokim98 Oct 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: App을 제외한 페이지 컴포넌트 lazy loading
  • Loading branch information
jinhokim98 committed Oct 23, 2024
commit 8f8a925744276de727fcf393e2a99bfb817df268
16 changes: 7 additions & 9 deletions client/src/router.tsx
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
import {createBrowserRouter} from 'react-router-dom';
import {lazy, Suspense} from 'react';

import ErrorPage from '@pages/ErrorPage/ErrorPage';
import EventLoginPage from '@pages/EventPage/AdminPage/EventLoginPage';
import EventLoader from '@components/Loader/EventLoader';
import SendErrorPage from '@pages/ErrorPage/SendErrorPage';
import AuthGate from '@pages/EventPage/AuthGate';

import {EventPage} from '@pages/EventPage';
import SendPage from '@pages/SendPage';

import {ROUTER_URLS} from '@constants/routerUrls';

import App from './App';

const ErrorPage = lazy(() => import('@pages/ErrorPage/ErrorPage'));
const SendErrorPage = lazy(() => import('@pages/ErrorPage/SendErrorPage'));
const EventLoginPage = lazy(() => import('@pages/EventPage/AdminPage/EventLoginPage'));
const EventLoader = lazy(() => import('@components/Loader/EventLoader'));
const AuthGate = lazy(() => import('@pages/EventPage/AuthGate'));
const EventPage = lazy(() => import('@pages/EventPage/EventPageLayout'));
const SendPage = lazy(() => import('@pages/SendPage'));
const MainPage = lazy(() => import('@pages/MainPage/MainPage'));
const HomePage = lazy(() => import('@pages/EventPage/HomePage/HomePage'));
const CreateEventFunnel = lazy(() => import('@pages/CreateEventPage/CreateEventFunnel'));