babel-plugin-react-autoprefix
Adds vendor prefixes to inline styles in React elements through autoprefix.
Installation
$ npm install babel-plugin-react-autoprefix
Usage
.babelrc
(Recommended)
Via .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.