1.1.0 • Published 8 years ago
babel-plugin-polished v1.1.0
babel-plugin-polished
Compile away polished helpers.
Example
In
import * as polished from 'polished';
let value = polished.clearFix();Out
let value = {
'&::after': {
clear: 'both',
content: '',
display: 'table'
}
};Installation
$ npm install babel-plugin-polishedUsage
Via .babelrc (Recommended)
.babelrc
{
"plugins": ["polished"]
}Via CLI
$ babel --plugins polished script.jsVia Node API
require("babel-core").transform("code", {
plugins: ["polished"]
});