{"id":21339019,"url":"https://github.com/followmetech/babel-plugin-replace-import-path","last_synced_at":"2025-03-16T02:22:46.156Z","repository":{"id":87226493,"uuid":"129066866","full_name":"FollowmeTech/babel-plugin-replace-import-path","owner":"FollowmeTech","description":"替换 import path 的值","archived":false,"fork":false,"pushed_at":"2020-07-07T17:42:38.000Z","size":6,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T16:06:27.820Z","etag":null,"topics":["babel-plugin","import-path","replace"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/FollowmeTech.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":"2018-04-11T09:12:32.000Z","updated_at":"2020-07-06T15:55:15.000Z","dependencies_parsed_at":"2023-03-13T19:42:27.007Z","dependency_job_id":null,"html_url":"https://github.com/FollowmeTech/babel-plugin-replace-import-path","commit_stats":null,"previous_names":["fmfe/babel-plugin-replace-import-path"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowmeTech%2Fbabel-plugin-replace-import-path","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowmeTech%2Fbabel-plugin-replace-import-path/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowmeTech%2Fbabel-plugin-replace-import-path/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FollowmeTech%2Fbabel-plugin-replace-import-path/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FollowmeTech","download_url":"https://codeload.github.com/FollowmeTech/babel-plugin-replace-import-path/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243814979,"owners_count":20352077,"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":["babel-plugin","import-path","replace"],"created_at":"2024-11-22T00:41:48.501Z","updated_at":"2025-03-16T02:22:45.999Z","avatar_url":"https://github.com/FollowmeTech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![build pass](https://api.travis-ci.org/fmfe/babel-plugin-replace-import-path.svg?branch=master)](https://travis-ci.org/dwqs/babel-plugin-replace-import-path?branch=master) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com) ![npm-version](https://img.shields.io/npm/v/babel-plugin-replace-import-path.svg) ![license](https://img.shields.io/npm/l/babel-plugin-replace-import-path.svg)\n# babel-plugin-replace-import-path\n替换 import path 的值\n\n## Installation\nInstall the pkg with npm:\n\n```\nnpm i babel-plugin-replace-import-path -D\n```\n\nor yarn\n\n```\nyarn add babel-plugin-replace-import-path -D\n```\n\n## Usage\n\nVia `.babelrc` or babel-loader.\n\n```\n{\n  \"plugins\": [[\"replace-import-path\", options]]\n}\n```\n\n### options\n\n`options` can be object.\n\n```\n{\n    src: 'test',\n    dest: 'lib'\n}\n```\n\n`options` can be an array.\n\n```\n[\n    {\n        src: 'test1',\n        dest: 'lib1'\n    },\n    {\n        src: 'test2',\n        dest: 'lib2'\n    }\n]\n```\n\n## Example\n\n**{ \"src\": \"test1/aaa\", dest: \"test2/bbb\" }**\n\n```js\nimport { A } from 'test1/aaa';\n\n↓ ↓ ↓ ↓ ↓ ↓\n\nvar a = require('test2/bbb');\n```\n\n## LICENSE\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowmetech%2Fbabel-plugin-replace-import-path","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffollowmetech%2Fbabel-plugin-replace-import-path","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffollowmetech%2Fbabel-plugin-replace-import-path/lists"}