casbloem / vue-luxon

Easy use of datetime with Luxon in Vue
https://npmjs.com/package/vue-luxon
72 stars 8 forks source link

Why is vue-luxon bigger than vue-moment? #17

Closed Kotoriii closed 3 years ago

Kotoriii commented 3 years ago

Due to Moment.js recommendations to find other alternatives, I am now looking for other JS date parsing libraries for my Vue project.

However, despite complaints about Moment being too big, according to Bundlephobia, the vue-moment wrapper is still smaller in size than vue-luxon. How can this be?

casbloem commented 3 years ago

The vue-luxon wrapper is only about 3kb. So 3kb + full Luxon (70kb) = 73kb

I dont know about the vue-moment library but it seems it doesn't include momentjs, or at least not full momentjs (on bundlephobia)