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
.babelrc
(Recommended)
Via .babelrc
Via CLI
$ babel --plugins polished script.js
Example
In
; let value = polished;
or
; let value = polished;
Out
let value = '&::after': clear: 'both' content: '' display: 'table' ;