1.0.0 • Published 6 years ago
babel-plugin-orbit-components v1.0.0
babel-plugin-orbit-components
Transforms destructured imports of @kiwicom/orbit-components
to granular ones!
Setup
Install:
yarn add -D @kiwicom/babel-plugin-orbit-components
Then just add @kiwicom/orbit-components
to the list of babel plugins, e.g. to .babelrc
:
{
"plugins": ["@kiwicom/orbit-components"]
}
Example
// Input:
import { Alert } from "@kiwicom/orbit-components";
// Output:
import Alert from "@kiwicom/orbit-components/lib/Alert";
License
MIT