@kiwicom/babel-plugin-orbit-components

A babel plugin for transforming destructured imports to granular ones.

Stats

StarsIssuesVersionUpdatedCreatedSize
@kiwicom/babel-plugin-orbit-components
1,084403.0.113 days ago3 years agoMinified + gzip package size for @kiwicom/babel-plugin-orbit-components in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.