Replace import path
npm install babel-plugin-replace-import-path  !npm-version !license
```
npm i babel-plugin-replace-import-path -D
or yarn
``
yarn add babel-plugin-replace-import-path -D
Via .babelrc or babel-loader.
``
{
"plugins": [["replace-import-path", options]]
}
options can be object.
``
{
src: 'test',
dest: 'lib'
}
options can be an array.
``
[
{
src: 'test1',
dest: 'lib1'
},
{
src: 'test2',
dest: 'lib2'
}
]
{ "src": "test1/aaa", dest: "test2/bbb" }
`js
import { A } from 'test1/aaa';
↓ ↓ ↓ ↓ ↓ ↓
var a = require('test2/bbb');
``