{"id":20548431,"url":"https://github.com/react18-tools/esbuild-plugin-remove-duplicate-imports","last_synced_at":"2025-07-22T14:35:45.872Z","repository":{"id":245077024,"uuid":"817333971","full_name":"react18-tools/esbuild-plugin-remove-duplicate-imports","owner":"react18-tools","description":"ESBuild plugin to remove duplicate import and require statements from the minified build.","archived":false,"fork":false,"pushed_at":"2025-07-22T02:23:23.000Z","size":3670,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-22T04:25:52.578Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/react18-tools.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["react18-tools","mayank1513"],"polar":"mayank1513","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":["https://pages.razorpay.com/mayank1513"]}},"created_at":"2024-06-19T13:41:22.000Z","updated_at":"2025-07-22T02:23:26.000Z","dependencies_parsed_at":"2024-11-23T02:21:04.610Z","dependency_job_id":"51b41701-709f-4100-89db-9114fa87f8a3","html_url":"https://github.com/react18-tools/esbuild-plugin-remove-duplicate-imports","commit_stats":null,"previous_names":["react18-tools/esbuild-plugin-remove-duplicate-require"],"tags_count":1,"template":false,"template_full_name":"react18-tools/turborepo-template","purl":"pkg:github/react18-tools/esbuild-plugin-remove-duplicate-imports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fesbuild-plugin-remove-duplicate-imports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fesbuild-plugin-remove-duplicate-imports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fesbuild-plugin-remove-duplicate-imports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fesbuild-plugin-remove-duplicate-imports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/react18-tools","download_url":"https://codeload.github.com/react18-tools/esbuild-plugin-remove-duplicate-imports/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/react18-tools%2Fesbuild-plugin-remove-duplicate-imports/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266510723,"owners_count":23940705,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-16T02:13:29.123Z","updated_at":"2025-07-22T14:35:45.851Z","avatar_url":"https://github.com/react18-tools.png","language":"JavaScript","funding_links":["https://github.com/sponsors/react18-tools","https://github.com/sponsors/mayank1513","https://polar.sh/mayank1513","https://pages.razorpay.com/mayank1513"],"categories":[],"sub_categories":[],"readme":"# Esbuild Plugin Remove Duplicate Imports \u003cimg src=\"https://github.com/react18-tools/esbuild-plugin-remove-duplicate-require/blob/main/popper.png?raw=true\" style=\"height: 40px\"/\u003e\n\n[![test](https://github.com/react18-tools/esbuild-plugin-remove-duplicate-require/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/esbuild-plugin-remove-duplicate-require/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/340147e152202fddb753/maintainability)](https://codeclimate.com/github/react18-tools/esbuild-plugin-remove-duplicate-require/maintainability) [![codecov](https://codecov.io/gh/react18-tools/esbuild-plugin-remove-duplicate-require/graph/badge.svg)](https://codecov.io/gh/react18-tools/esbuild-plugin-remove-duplicate-require) [![Version](https://img.shields.io/npm/v/esbuild-plugin-rdi.svg?colorB=green)](https://www.npmjs.com/package/esbuild-plugin-rdi) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/d18m/esbuild-plugin-rdi.svg)](https://www.npmjs.com/package/esbuild-plugin-rdi) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/esbuild-plugin-rdi) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)\n\n\u003e ESBuild plugin to remove duplicate require statements from minified build.\n\n\u003e \u003cimg src=\"https://github.com/react18-tools/esbuild-plugin-remove-duplicate-require/blob/main/popper.png?raw=true\" style=\"height: 20px\"/\u003e Please consider starring [this repository](https://github.com/react18-tools/esbuild-plugin-remove-duplicate-require) and sharing it with your friends.\n\n## Getting Started\n\n### Installation\n\n```bash\n$ pnpm add esbuild-plugin-rdi\n```\n\n**_or_**\n\n```bash\n$ npm install esbuild-plugin-rdi\n```\n\n**_or_**\n\n```bash\n$ yarn add esbuild-plugin-rdi\n```\n\n\u003e If you are using `monorepo` or `workspaces`, you can install this plugin to the root using `-w` or to a specific workspace using `--filter your-package` or `--scope your-package` for `pnpm` or `yarn` workspaces, respectively.\n\n## Use with `tsup`\n\n```ts\n// tsup.config.ts or tsup.config.js\nimport { defineConfig } from \"tsup\";\nimport { rdiPlugin } from \"esbuild-plugin-rdi\";\n\nexport default defineConfig(options =\u003e ({\n    ...\n    esbuildPlugins:[rdiPlugin()]\n}));\n```\n\n## Use with `esbuild`\n\n```ts\nimport { rdiPlugin } from \"esbuild-plugin-rdi\";\n\nesbuild.build({\n\t...\n\tplugins: [rdiPlugin()],\n});\n```\n\n## Plugin Options\n\nComing soon...\n\n### [🤩 Don't forget to star this repo!](https://github.com/react18-tools/esbuild-plugin-remove-duplicate-require)\n\n\u003e \u003cimg src=\"https://github.com/react18-tools/esbuild-plugin-remove-duplicate-require/blob/main/popper.png?raw=true\" style=\"height: 20px\"/\u003e Please consider enrolling in [our courses](https://mayank-chaudhari.vercel.app/courses) or [sponsoring](https://github.com/sponsors/mayank1513) our work.\n\n![Alt](https://repobeats.axiom.co/api/embed/2f175594e854b83247faaac1a97abff3d8ce4699.svg \"Repobeats analytics image\")\n\n## License\n\nThis library is licensed under the MPL-2.0 open-source license.\n\n\u003chr /\u003e\n\n\u003cp align=\"center\" style=\"text-align:center\"\u003ewith 💖 by \u003ca href=\"https://mayank-chaudhari.vercel.app\" target=\"_blank\"\u003eMayank Kumar Chaudhari\u003c/a\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact18-tools%2Fesbuild-plugin-remove-duplicate-imports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freact18-tools%2Fesbuild-plugin-remove-duplicate-imports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freact18-tools%2Fesbuild-plugin-remove-duplicate-imports/lists"}