ember-cli-lodash-subset is an Ember CLI addon designed to optimize application startup times by creating a custom, trimmed-down build of Lodash. It leverages Rollup and `lodash-es` to selectively include only the Lodash functions explicitly defined in its `lodash.subset.js` configuration. This approach aims to reduce the overall JavaScript bundle size, offering a 20-30% improvement in Ember CLI startup performance by eliminating unused Lodash utilities. The current version is 2.0.1, published several years ago. There is no active development or regular release cadence for this specific package. While it offered significant benefits upon its release, modern Ember CLI applications typically achieve similar tree-shaking benefits for Lodash by directly using `lodash-es` with `ember-auto-import`, making this addon largely superseded and less relevant in current Ember development workflows.
Verified import paths — ran on the pinned version, not inferred.
The addon makes Lodash functions available under the 'lodash' path, not 'lodash-es' directly, even though it uses 'lodash-es' for its build. Named imports are preferred for tree-shaking.
While possible, importing the entire Lodash object (`_`) via a default import largely negates the bundle size optimization benefits of this addon, as it prevents effective tree-shaking.
Specific functions should be imported directly from 'lodash' (the alias provided by the addon) rather than deeper paths like 'lodash/debounce'.
Demonstrates installing the addon, then importing and using `debounce` and `isEmpty` from the custom Lodash subset within an Ember component for a debounced search input.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.