"Vite 가 cwkPippa frontend 가 돌아가는 bundler-와-dev-server. 빠르고, 단순, TypeScript-native."
Vite 가 뭐
Vite (vitejs.dev) 가 2 모드 가진 build tool: dev (ESM-native, bundling 없음, 즉시 HMR) 과 prod (Rollup-based bundle, shipping 용 최적화). Next.js 같은 full framework 안 쓰는 대부분 React/Vue/Svelte 프로젝트엔 Vite 가 canonical 선택.
TypeScript 지원이 first-class. `src/` 에 `.ts`/`.tsx` 파일 떨구고 import, Vite 가 esbuild 통해 transpilation 처리. 타입 체크 위임 — 별도로 `tsc --noEmit` 돌림.
cwkPippa frontend layout
cwkPippa 의 `frontend/` 가 Vite + React 19 + TypeScript 사용:
frontend/
├── package.json
├── tsconfig.json # strict: true, target ES2022
├── vite.config.ts # Vite config — plugin, alias
├── index.html # entry point
└── src/
├── main.tsx # React mount
├── App.tsx # top-level component
├── components/ # UI component
├── hooks/ # custom hook
├── lib/ # utility, api
└── types/ # 공유 타입
npm run dev 가 HMR 있는 Vite dev server 시작. npm run build 가 production bundle 만듦. npm run typecheck 가 tsc --noEmit 돌림.
Path alias
Vite 가 tsconfig 의 `paths` 옵션 AND `vite.config.ts` 의 matching alias 통해 path alias 지원. 흔한 패턴: @ → ./src. 그다음 긴 relative path 대신 import { Button } from '@/components/Button'.