Repository navigation
day.js #18
Noelsky-code
started this conversation in
General
day.js
#18
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
day.js 공식 문서
사용 이유
마이그레이션 이유
#16
moment.js에서 diff연산 시 day가 정확하게 연산안되는 문제점이 있었고, 라이브러리의 개발이 중단되어 앞으로도 해결 불가능해 보임.
또한, moment.js와 동일한 API 인터페이스를 제공해줘서 마이그레이션이 간단
필요한 부분만 번들링에 포함되고, 나머지 필요한 부분은 플러그인으로 추가할 수 있음
따라서 번들 사이즈를 크게 줄일 수 있음
위와 같은 이유로 day.js로 마이그레이션 진행
https://blog.hoseung.me/2022-03-13-dayjs-instead-of-momentjs
번들 사이즈가 moment.js의 30% 가량 줄어든다는 문서.
All reactions