Back to results
danielecammarata/rollup-plugin-strip-prop-types(opens in a new tab)
Language: JavaScript
- stars
- 1
- watchers
- 1
- forks
- 3
- open issues
- 2
- Last updated
- 04/14/2021
Language: JavaScript
Remove propTypes and defaultProps statements from ReactJs components, also removes the imported package. It expect you are using prop-types package.
npm install --save-dev rollup-plugin-strip-prop-types
// rollup.config.js import stripPropTypes from 'rollup-plugin-strip-prop-types'; export default { entry: 'src/index.js', dest: 'dist/my-lib.js', plugins: [ stripPropTypes({ // set this to `false` if you're not using sourcemaps – // defaults to `true` sourceMap: true }) ] };
MIT