@kiwicom/babel-plugin-orbit-components

5.0.10 • 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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 5.0.10
    235
    • latest

Version History

Package Sidebar

Install

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

Weekly Downloads

2,429

Version

5.0.10

License

MIT

Unpacked Size

8.3 kB

Total Files

4

Last publish

Collaborators

  • mvidalgarcia
  • dsil
  • jakubzaba
  • robincsl_kiwi
  • kiwicom.platform
  • dinodsaurus