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

Optimise your bundle by automatically rewriting import statements from seek-style-guide

License

Notifications You must be signed in to change notification settings

seek-oss/babel-plugin-seek-style-guide

Repository files navigation

Build Status npm David David semantic-release Commitizen friendly

babel-plugin-seek-style-guide

Optimise your bundle by automatically rewriting import statements from seek-style-guide.

For example, turn this:

import { Text, Button } from 'seek-style-guide/react';

Into this:

import Text from 'seek-style-guide/react/Text/Text';
import Button from 'seek-style-guide/react/Button/Button';

Setup

First, install from npm:

$ npm install --save-dev babel-plugin-seek-style-guide

Then, add seek-style-guide to the plugins list in your Babel config. For example, in .babelrc:

{
  "plugins": ["seek-style-guide"]
}

Contributing

Refer to CONTRIBUTING.md.

License

MIT.

About

Optimise your bundle by automatically rewriting import statements from seek-style-guide

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published