npm

Bring the best of OSS JavaScript development to your projects with npm Orgs - private packages & team management tools.Learn more »

@kiwicom/babel-plugin-orbit-components

1.2.0 • Public • Published

babel-plugin-orbit-components

Build Status codecov styled with prettier npm (scoped)

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";
// Also works for "@kiwicom/orbit-components/lib"
 
// Output:
import Alert from "@kiwicom/orbit-components/lib/Alert";
// Input
import { Passengers } from "@kiwicom/orbit-components/icons";
// Also works for "@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

1,913

version

1.2.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

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