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.
npm install ember-cli-lodash-subsetVerified import paths — ran on the pinned version, not inferred.
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.
Consider migrating to `lodash-es` and relying on `ember-auto-import` for tree-shaking. Remove `ember-cli-lodash-subset` and update your `package.json` to include `lodash-es` as a dependency, then import directly: `import { functionName } from 'lodash-es';`.Verify that the required Lodash function is included in your `lodash.subset.js` (if you are maintaining a fork of the addon) or the addon's default subset. If not, you may need to extend the subset (requires forking the addon) or switch to a full Lodash inclusion or `lodash-es` with tree-shaking for un-subsettized functions.
It is strongly recommended to migrate away from this abandoned package. Use `lodash-es` directly with `ember-auto-import` for modern Ember applications or consider alternative utility libraries.
Check the `lodash.subset.js` file (within the addon's repository) to confirm if the function is part of the custom build. If not, you either need to modify the subset (by forking the addon) or use a different method to include that Lodash function.
Ensure `ember-cli-lodash-subset` is correctly installed (`npm install ember-cli-lodash-subset --save-dev` or `yarn add ember-cli-lodash-subset --dev`) and that your Ember application's `ember-cli-build.js` is properly configured. If migrating away from the addon, change all `import from 'lodash'` statements to `import from 'lodash-es'` (after installing `lodash-es`).
No dependency data recorded yet.