Skip to content

[Init] 절대 경로(alias) 설정 추가#15

Merged
jeonghoon11 merged 1 commit intodevelopfrom
init/absolute-path-setting/#11
Nov 16, 2025
Merged

[Init] 절대 경로(alias) 설정 추가#15
jeonghoon11 merged 1 commit intodevelopfrom
init/absolute-path-setting/#11

Conversation

@u-zzn
Copy link
Member

@u-zzn u-zzn commented Nov 16, 2025

🔍 관련 이슈 (Related Issues)

📝 변경 사항 요약 (Summary)

프로젝트 전역에서 import 경로를 더 간편하고 일관되게 관리할 수 있도록
Vite + TypeScript 기반의 절대 경로(alias) 설정을 추가했습니다.

🎯 작업 내용 상세 (Details)

1) vite-tsconfig-paths 플러그인 적용

  • vite-tsconfig-paths 패키지를 설치하고
    vite.config.ts에 플러그인을 추가하여 tsconfig의 paths 값을 자동으로 인식하도록 설정했습니다.

2) tsconfig.app.json에 alias 경로 추가

아래 alias가 프로젝트 폴더 구조에 맞게 반영되었습니다.

"paths": {
  "@app/*": ["src/app/*"],
  "@pages/*": ["src/pages/*"],
  "@shared/*": ["src/shared/*"],
  "@widgets/*": ["src/widgets/*"]
}

3) alias import 정상 동작 여부 확인

  • @shared/components / @shared/apis 를 이용한 임시 테스트 코드를 통해 동작 확인 완료
  • 테스트용 파일은 실제 기능에는 불필요하므로 PR에는 포함하지 않았습니다.

📸 스크린샷 (Screenshots)

💬 리뷰어 참고사항 (Notes for Reviewers)

@u-zzn u-zzn self-assigned this Nov 16, 2025
Copy link
Member

@jeonghoon11 jeonghoon11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

굳굳!! 빠른 작업 감사합니다. 코드볼 때 경로가 깔끔하겠군요!

@jeonghoon11 jeonghoon11 merged commit 1f0f6bf into develop Nov 16, 2025
1 check passed
@jeonghoon11 jeonghoon11 deleted the init/absolute-path-setting/#11 branch November 16, 2025 10:55
@u-zzn u-zzn added 🎉 init 프로젝트 세팅 🐹 유진 labels Nov 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🎉 init 프로젝트 세팅 🐹 유진

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Init] 절대 경로 설정(Absolute Path Setting)

3 participants