icehaunter / vue3-datepicker

Simple datepicker component for Vue 3
https://icehaunter.github.io/vue3-datepicker/
MIT License
150 stars 153 forks source link

Seems pack `date-fns` without tree shaking. #29

Closed suienzan closed 3 years ago

suienzan commented 3 years ago

Init a blank vue project. Then import vue3-datepicker like this:

import picker from "vue3-datepicker";
console.log(picker);

Build project will pack date-fns without tree shaking.

pounard commented 3 years ago

Please see #25

pounard commented 3 years ago

OK there was a bug in date-fns, it has been fixed there https://github.com/date-fns/date-fns/pull/2339 - I guess this issue can be closed now.

suienzan commented 3 years ago

Upgraded date-fns to version 2.21.1. Tree-shaking works as expected now.