matthewmueller / date

Date() for humans
http://matthewmueller.github.io/date/
1.48k stars 88 forks source link

started removing lodash to bring down the build size #76

Closed matthewmueller closed 2 years ago

matthewmueller commented 8 years ago

Unfortunately including some of lodash's iterators makes the build size jump up. The base-iterator (which is what most these methods depend on) is 52kb unminified.

Not a huge deal since it's still relatively small, but I don't like when a dependency that doesn't do all that much has a larger weight than the library itself ;-).

This is an effort to remove lodash from the build. Most were easily converted to ES5 and below functions, but the remaining are a little trickier:

/cc @kengz

kengz commented 8 years ago

Hah okay I'll try to avoid, and at the end we can rewrite some substitute function for the lodash methods.

kengz commented 8 years ago

Removed all lodash dependencies; wrote my own versions under 'subdash'. Writing unit tests now, will create PR soon.