Skip to content

SimonaliaChen/babel-plugin-polished

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WHY THIS FORK The original package has a fatal issue that causes crash when dev. Due to it haven't updated for a long time, so here we are.

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-polished

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["polished"]
}

Via CLI

$ babel --plugins polished script.js

Via Node API

require("babel-core").transform("code", {
  plugins: ["polished"]
});

About

Compile polished helper functions at build time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%