oliviertassinari / babel-plugin-transform-react-remove-prop-types

Remove unnecessary React propTypes from the production build. :balloon:
MIT License
897 stars 61 forks source link

Not working for SFC forwardRef() and createContext() #195

Open Rendez opened 4 years ago

Rendez commented 4 years ago
const myComp = React.forwardRef(() => {...}); myComp.propTypes = {};
const context = React.createContext();
context.provider.propTypes = {}