@11ty/lodash-custom
v4.17.21
Published
A custom, focused build of lodash exclusively for use internally in Eleventy.
Downloads
173,985
Readme
@11ty/lodash-custom
Eleventy uses 3 small lodash
functions:
Why?
- The top level
lodash
package includes all oflodash
and is a hefty 5 MB. - Using the individual, modularized
lodash.get
,lodash.set
,lodash.chunk
packages are a much smaller 106 KB but do contain duplicated code. More problematically, these are not being maintained/updated with the newest versions oflodash
.
This package creates one focused custom dependency using the tools that lodash
provides to do custom builds (lodash-cli
) for these three lodash
functions with updated versions of lodash
.