/babel-plugin-react-autoprefix

Adds vendor prefixes to styles in React elements

Primary LanguageJavaScript

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.