babel-plugin-polished-fork
v1.1.2
Published
Compile away polished helpers
Downloads
7
Maintainers
Readme
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'
}
};