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

[이상조] 챕터 5: 최신 자바스크립트 문법과 기능 #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
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
13 changes: 13 additions & 0 deletions 챕터_5/이상조.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 최신 자바스크립트 문법과 기능

- 모듈: 느슨한 결합
- nomodule은 구형 브라우저를 위한 것인데, type="module"을 이해하지 못할 정도의 구형 브라우저를 위한 것이라고 함.
- 모듈 객체: `i port * as Staff from "/modules/staff.mj "` 이 패턴 [댄 성님이 컴파운드 대신 쓰라고 함](https://github.com/vercel/next.js/issues/51593#issuecomment-1748001262).
- 동적 가져오기: 트리쉐이킹을 힘들게 만드는 주범이다.

모듈의 장점
- 한 번만 실행
- 자동으로 지연 로드
- 유지보수, 재사용
- 네임스페이스 제공
- 트리쉐이킹
Loading