@kiwicom/babel-plugin-orbit-components
A babel plugin for transforming destructured imports to granular ones.
Last updated 2 days ago by silvenon .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @kiwicom/babel-plugin-orbit-components 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.7.1                                ...           latest (2 days ago)

10 Versions

  • 1.7.1                                ...           2 days ago
  • 1.7.0                                ...           5 days ago
  • 1.6.1                                ...           a month ago
  • 1.6.0                                ...           9 months ago
  • 1.5.0                                ...           9 months ago
  • 1.4.0                                ...           10 months ago
  • 1.3.0                                ...           a year ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 14
This Month 25
Last Day 1
Last Week 11
Last Month 16
Dependencies (0)
None
Dev Dependencies (5)

Copyright 2014 - 2016 © taobao.org |