{"id":21777689,"url":"https://github.com/mingtianyihou33/vite-plugin-replace-lodash","last_synced_at":"2025-04-12T01:40:56.093Z","repository":{"id":263710295,"uuid":"891259766","full_name":"mingtianyihou33/vite-plugin-replace-lodash","owner":"mingtianyihou33","description":"Replacing the import of lodash with lodash-es is more beneficial to tree-shaking","archived":false,"fork":false,"pushed_at":"2025-02-13T07:07:43.000Z","size":58,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T20:45:40.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mingtianyihou33.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-20T02:31:25.000Z","updated_at":"2025-02-13T07:07:47.000Z","dependencies_parsed_at":"2024-11-20T03:13:57.546Z","dependency_job_id":"3c09268a-d4b3-4adf-a81c-aa7795fa9df8","html_url":"https://github.com/mingtianyihou33/vite-plugin-replace-lodash","commit_stats":null,"previous_names":["mingtianyihou33/vite-plugin-replace-lodash"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingtianyihou33%2Fvite-plugin-replace-lodash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingtianyihou33%2Fvite-plugin-replace-lodash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingtianyihou33%2Fvite-plugin-replace-lodash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingtianyihou33%2Fvite-plugin-replace-lodash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mingtianyihou33","download_url":"https://codeload.github.com/mingtianyihou33/vite-plugin-replace-lodash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248505740,"owners_count":21115352,"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":[],"created_at":"2024-11-26T22:01:41.018Z","updated_at":"2025-04-12T01:40:56.086Z","avatar_url":"https://github.com/mingtianyihou33.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Framework-agnostic Plugins"],"readme":"# vite-plugin-replace-lodash\n\n**English** | [中文](./README.zh_CN.md)\n\nA `Vite` plugin is used to replace `lodash` with `lodash-es` to prevent all lodash modules are imported and the bundle volume is too large because it cannot tree-shaking.\n\nNotice: The `lodash-es` module needs to be installed separately.\n\n## Install\n\nnpm:\n\n```bash\nnpm install vite-plugin-replace-lodash -D\n```\n\npnpm:\n\n```bash\npnpm add vite-plugin-replace-lodash -D\n```\n\n## Usage\n\n```typescript\nimport { defineConfig } from 'vite';\nimport { replaceLodash } from 'vite-plugin-replace-lodash';\n\nexport default defineConfig({\n  plugins: [replaceLodash()],\n})\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingtianyihou33%2Fvite-plugin-replace-lodash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingtianyihou33%2Fvite-plugin-replace-lodash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingtianyihou33%2Fvite-plugin-replace-lodash/lists"}