babel-plugin-polished-fork

1.1.2 • Public • Published

babel-plugin-polished-fork

Compile away polished helpers. This is a fork from the original package to overcome dependency stuck at v.1.0.0 of polished package.

Installation

$ npm install  babel-plugin-polished-fork
 

or

$ yarn add  babel-plugin-polished-fork
 

Usage

Via .babelrc (Recommended)

.babelrc

{
   "plugins": [
        [
            "babel-plugin-polished-fork",
            {
                "module": "polished"
            }
        ]
    ]
}

Via CLI

$ babel --plugins polished script.js

Example

In

import * as polished from 'polished';
 
let value = polished.clearFix();

or

import { clearFix } from 'polished';
 
let value = polished.clearFix();

Out

let value = {
  '&::after': {
    clear: 'both',
    content: '',
    display: 'table'
  }
};

Package Sidebar

Install

npm i babel-plugin-polished-fork

Weekly Downloads

5

Version

1.1.2

License

MIT

Unpacked Size

5.59 kB

Total Files

4

Last publish

Collaborators

  • asher.cohen