카카오 맵 api parse blocking 경고 해결 및 global define 변경 #359
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
⚙️ PR 타입
✨ 기능 설명 or 🚨 문제 상황
1. 카카오 맵 api parse blocking 경고
cdn이 로드 되기 전에 지도 객체에 접근하여 아래와 같은 경고가 발생했습니다.
autoload=false
속성을 추가하여 cdn이 모두 로드된 후에 지도를 그리도록 설정해주었습니다.2. socketjs-client global define
socketjs-client에서
global
이undefined
여서 아래와 같은 문제가 발생했습니다.vite.config에서 global을 정의해 문제를 해결했습니다.
(이전에는 임시로
index.html
에서var global=window
로 정의했었습니다.)👨💻 구현 내용 or 👍 해결 내용
chore: kakao map cdn에 autoload 속성 추가
chore: vite config에서 global 정의
🎯 PR 포인트
📝 참고 사항
참고자료 카카오 지도 load
❓ 궁금한 점