Skip to content
This repository has been archived by the owner on Sep 8, 2020. It is now read-only.

A babel plugin for transforming destructured imports to granular ones.

License

Notifications You must be signed in to change notification settings

kiwicom/babel-plugin-orbit-components

Repository files navigation

babel-plugin-orbit-components

Build Status

Transforms destructured imports of @kiwicom/orbit-components to granular ones!


Note: This project was moved to the monorepo.


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

About

A babel plugin for transforming destructured imports to granular ones.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published