{"id":19604657,"url":"https://github.com/victorvoid/babel-plugin-change-import","last_synced_at":"2026-02-17T06:06:07.120Z","repository":{"id":51670457,"uuid":"517753980","full_name":"victorvoid/babel-plugin-change-import","owner":"victorvoid","description":"This plugin is a transform to remove unused library dependencies, without forcing the user to cherry pick import manually. This lets you use libraries naturally without worrying about bundling parts you're not using.","archived":false,"fork":false,"pushed_at":"2022-10-20T13:02:13.000Z","size":50,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-22T00:21:12.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/victorvoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-07-25T17:11:04.000Z","updated_at":"2022-09-07T15:59:04.000Z","dependencies_parsed_at":"2022-08-30T09:11:47.152Z","dependency_job_id":null,"html_url":"https://github.com/victorvoid/babel-plugin-change-import","commit_stats":null,"previous_names":["victorvoid/babel-plugin-custom-import"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/victorvoid/babel-plugin-change-import","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorvoid%2Fbabel-plugin-change-import","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorvoid%2Fbabel-plugin-change-import/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorvoid%2Fbabel-plugin-change-import/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorvoid%2Fbabel-plugin-change-import/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/victorvoid","download_url":"https://codeload.github.com/victorvoid/babel-plugin-change-import/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/victorvoid%2Fbabel-plugin-change-import/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29535934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T05:00:25.817Z","status":"ssl_error","status_checked_at":"2026-02-17T04:57:16.126Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11T09:37:45.809Z","updated_at":"2026-02-17T06:06:07.101Z","avatar_url":"https://github.com/victorvoid.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# babel-plugin-change-import [![Build Status](https://travis-ci.org/victorvoid/babel-plugin-change-import.svg?branch=master)](https://travis-ci.org/victorvoid/babel-plugin-change-import)\r\n\r\n\r\nThis plugin is a transform to remove unused library dependencies, without forcing the user to cherry pick import manually. This lets you use libraries naturally without worrying about bundling parts you're not using.\r\n\r\n## Installation\r\n\r\nusing npm\r\n```bash\r\nnpm install babel-plugin-change-import -S\r\n```\r\nor via yarn\r\n```bash\r\nyarn add babel-plugin-change-import -S\r\n```\r\n\r\n## Example\r\n\r\n###### `.babelrc` (Recommended)\r\n\r\n```json\r\n{\r\n  \"plugins\": [\r\n      [\"change-import\", {\r\n        \"libraryName\": \"@company/ds\",\r\n        \"modulePath\": \"@company/ds/components\"\r\n      }]\r\n    ]\r\n}\r\n```\r\n\r\nTransforms\r\n\r\n```js\r\nimport { Button, Input, Text} from '@company/ds'\r\n```\r\n\r\nto\r\n\r\n```js\r\nimport Button from '@company/ds/components/Button'\r\nimport Input from '@company/ds/components/Input'\r\nimport Text from '@company/ds/components/Text'\r\n```\r\n\r\n## Options\r\n\r\nYou can to specific your imports\r\n\r\n## 1. \"specific\"\r\n\r\n###### .babelrc\r\n\r\n```json\r\n{\r\n  \"plugins\": [\r\n      [\"change-import\", {\r\n        \"libraryName\": \"@company/ds\",\r\n        \"modulePath\": \"@company/ds/components\",\r\n        \"specific\": {\r\n            \"configure\": \"@company/ds/configure\",\r\n        },\r\n      }]\r\n    ]\r\n}\r\n```\r\n\r\nTransforms\r\n```js\r\nimport { Button, configure } from '@company/ds'\r\n```\r\n\r\nto\r\n\r\n```js\r\nimport Button from '@company/ds/components/Button'\r\nimport configure from '@company/ds/configure'\r\n```\r\n\r\n## 2. \"specificDestructuring\"\r\n\r\n###### .babelrc\r\n\r\n```json\r\n{\r\n  \"plugins\": [\r\n      [\"change-import\", {\r\n        \"libraryName\": \"@company/ds\",\r\n        \"modulePath\": \"@company/ds/components\",\r\n        \"specificDestructuring\": {\r\n            \"useAlert\": \"@company/ds/components/Alert\",\r\n        },\r\n      }]\r\n    ]\r\n}\r\n```\r\n\r\nTransforms\r\n```js\r\nimport { Button, useAlert } from '@company/ds'\r\n```\r\n\r\nto\r\n\r\n```js\r\nimport Button from '@company/ds/components/Button'\r\nimport { useAlert } from '@company/ds/components/Alert'\r\n```\r\n\r\n## License\r\n\r\n[MIT](https://choosealicense.com/licenses/mit/)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorvoid%2Fbabel-plugin-change-import","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvictorvoid%2Fbabel-plugin-change-import","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvictorvoid%2Fbabel-plugin-change-import/lists"}