{"id":15127498,"url":"https://github.com/lodash/lodash-webpack-plugin","last_synced_at":"2025-09-28T14:31:01.404Z","repository":{"id":44164841,"uuid":"57350423","full_name":"lodash/lodash-webpack-plugin","owner":"lodash","description":"Smaller modular Lodash builds.","archived":true,"fork":false,"pushed_at":"2022-11-15T22:33:23.000Z","size":704,"stargazers_count":1190,"open_issues_count":16,"forks_count":63,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-01-17T18:01:15.430Z","etag":null,"topics":["lodash","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lodash.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-29T03:03:30.000Z","updated_at":"2024-12-21T23:10:58.000Z","dependencies_parsed_at":"2022-07-30T10:48:00.938Z","dependency_job_id":null,"html_url":"https://github.com/lodash/lodash-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Flodash-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Flodash-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Flodash-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lodash%2Flodash-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lodash","download_url":"https://codeload.github.com/lodash/lodash-webpack-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234525633,"owners_count":18846937,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lodash","webpack"],"created_at":"2024-09-26T02:04:35.704Z","updated_at":"2025-09-28T14:31:01.055Z","avatar_url":"https://github.com/lodash.png","language":"JavaScript","readme":"# lodash-webpack-plugin\n\nCreate smaller Lodash builds by replacing [feature sets](#feature-sets) of modules\nwith [noop](https://lodash.com/docs#noop), [identity](https://lodash.com/docs#identity),\nor simpler alternatives.\n\nThis plugin complements [babel-plugin-lodash](https://www.npmjs.com/package/babel-plugin-lodash)\nby shrinking its cherry-picked builds even further!\n\nDISCLAIMER: Using this plugin without enabling the proper feature sets may cause lodash functions to behave in unexpected ways. Methods may appear to work, however they might return incorrect results.\n\n## Install\n\n```shell\n$ npm i --save lodash\n$ npm i --save-dev lodash-webpack-plugin babel-core babel-loader babel-plugin-lodash babel-preset-env webpack\n```\n\n## Example\n\n![demo](https://cloud.githubusercontent.com/assets/4303/15064867/2c5420b0-130e-11e6-8293-5037d359851f.gif)\n\n## Usage\n\n###### webpack.config.js\n```js\nvar LodashModuleReplacementPlugin = require('lodash-webpack-plugin');\nvar webpack = require('webpack');\n\nmodule.exports = {\n  'module': {\n    'rules': [{\n      'use': 'babel-loader',\n      'test': /\\.js$/,\n      'exclude': /node_modules/,\n      'options': {\n        'plugins': ['lodash'],\n        'presets': [['env', { 'modules': false, 'targets': { 'node': 4 } }]]\n      }\n    }]\n  },\n  'plugins': [\n    new LodashModuleReplacementPlugin,\n    new webpack.optimize.UglifyJsPlugin\n  ]\n};\n```\n\nOpt-in to features with an options object:\n```js\nnew LodashModuleReplacementPlugin({\n  'collections': true,\n  'paths': true\n});\n```\n\n## Feature Sets\n\nThe following features are removed by default _(biggest savings first)_:\n\n| Feature | Description |\n|:---|:---|\n| `shorthands`   | Iteratee shorthands for `_.property`, `_.matches`, \u0026 `_.matchesProperty`. |\n| `cloning`      | Support “clone” methods \u0026 cloning source objects. |\n| `currying`     | Support “curry” methods. |\n| `caching`      | Caches for methods like `_.cloneDeep`, `_.isEqual`, \u0026 `_.uniq`. |\n| `collections`  | Support objects in “Collection” methods. |\n| `exotics`      | Support objects like buffers, maps, sets, symbols, typed arrays, etc. |\n| `guards`       | Guards for host objects, sparse arrays, \u0026 other edge cases. |\n| `metadata`     | Metadata to reduce wrapping of bound, curried, \u0026 partially applied functions.\u003cbr\u003e_(requires `currying`)_ |\n| `deburring`    | Support deburring letters. |\n| `unicode`      | Support Unicode symbols. |\n| `chaining`     | Components to support chain sequences. |\n| `memoizing`    | Support `_.memoize` \u0026 memoization. |\n| `coercions`    | Support for coercing values to integers, numbers, \u0026 strings. |\n| `flattening`   | Support “flatten” methods \u0026 flattening rest arguments. |\n| `paths`        | Deep property path support for methods like `_.get`, `_.has`, \u0026 `_.set`. |\n| `placeholders` | Argument placeholder support for “bind”, “curry”, \u0026 “partial” methods.\u003cbr\u003e_(requires `currying`)_ |\n","funding_links":[],"categories":["Build Tools"],"sub_categories":["React Components"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodash%2Flodash-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flodash%2Flodash-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flodash%2Flodash-webpack-plugin/lists"}