babel-plugin-react-autoprefix

Adds vendor prefixes to inline styles in React elements


Keywords
babel-plugin, react, auto, prefix, vendor, style, inline, styles
License
MIT
Install
npm install babel-plugin-react-autoprefix@1.0.1

Documentation

babel-plugin-react-autoprefix

Adds vendor prefixes to inline styles in React elements through autoprefix.

Build Status

Installation

$ npm install babel-plugin-react-autoprefix

Usage

Via .babelrc (Recommended)

.babelrc

{
  "plugins": ["react-autoprefix"]
}

Via CLI

$ babel --plugins react-autoprefix script.js

Via Node API

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

 TODO

  • Refactor how we deal with SpreadProperty nodes.