babel-plugin-orbit-components
v1.0.0
Published
[![Build Status](https://travis-ci.org/kiwicom/babel-plugin-orbit-components.svg?branch=master)](https://travis-ci.org/kiwicom/babel-plugin-orbit-components) [![codecov](https://codecov.io/gh/kiwicom/babel-plugin-orbit-components/branch/master/graph/badge
Downloads
10
Readme
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