Adds vendor prefixes to inline styles in React elements through autoprefix.
$ npm install babel-plugin-react-autoprefix
.babelrc
{
"plugins": ["react-autoprefix"]
}
$ babel --plugins react-autoprefix script.js
require("babel-core").transform("code", {
plugins: ["react-autoprefix"]
});
# TODO
- Refactor how we deal with
SpreadProperty
nodes.