npm

Need private packages and team management tools?Check out npm Orgs. »

@kiwicom/babel-plugin-orbit-components

1.3.0 • Public • Published

babel-plugin-orbit-components

Build Status

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"]
}

Examples

// Input:
import { Alert } from '@kiwicom/orbit-components';
 
// Output:
import Alert from '@kiwicom/orbit-components/lib/Alert';
// Input
import { Passengers } from '@kiwicom/orbit-components/lib/icons';
 
// Output
import Passengers from '@kiwicom/orbit-components/lib/icons/Passengers';

License

MIT

Keywords

install

npm i @kiwicom/babel-plugin-orbit-components

Downloadsweekly downloads

4,021

version

1.3.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability