date-fns / date-fns-upgrade

A tool for upgrading date-fns versions
8 stars 8 forks source link

Bundle Size: not tree shakable, date-fns not peer dependency #14

Open hamncheez opened 3 years ago

hamncheez commented 3 years ago

When used with date-fns 2.0, the entire package is imported and prevents tree shaking. Can we allow tree shaking within date-fns-upgrade and include date-fns as a peer dependency instead of direct dependency?

sivanharel commented 3 years ago

I opened a PR to solve this issue: https://github.com/date-fns/date-fns-upgrade/pull/20