Removes propTypes property from classes
In
Class Foo {
propTypes: {
foo: React.PropTypes.string
}
}
Out
Class Foo {
}
$ npm install --save-dev babel-plugin-remove-prop-types
.babelrc
{
"env": {
"production": {
"plugins": ["remove-prop-types"]
}
}
}
$ babel --plugins remove-prop-types script.js
require("babel-core").transform("code", {
plugins: ["remove-prop-types"]
});