JSPM

@11ty/lodash-custom

4.17.21
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 105491
  • Score
    100M100P100Q164921F
  • License MIT

A custom, focused build of lodash exclusively for use internally in Eleventy.

Package Exports

  • @11ty/lodash-custom
  • @11ty/lodash-custom/lodash.custom.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@11ty/lodash-custom) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@11ty/lodash-custom

Eleventy uses 3 small lodash functions:

Why?

  1. The top level lodash package includes all of lodash and is a hefty 5 MB.
  2. 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 of lodash.

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.