{"library":"babel-plugin-transform-react-remove-prop-types","type":"library","category":null,"description":"This Babel plugin, currently at version `0.4.24`, is designed to optimize React applications by effectively removing `propTypes` definitions from the production build. `propTypes` are primarily utilized for development-time type checking and debugging, and thus represent unnecessary overhead in production bundles, contributing to larger file sizes and increased load times. The plugin offers distinct `mode` options: `remove` (the default for most applications), `wrap`, and `unsafe-wrap`. The `wrap` and `unsafe-wrap` modes are specifically tailored for React library authors, enabling them to retain some `propTypes` behavior in development while ensuring optimization for production scenarios. The `remove` mode is generally recommended for direct application authors seeking maximum bundle size reduction. The project exhibits a consistent, albeit at times gradual, release cadence, with recent patches focusing on improved type checking logic, custom `createReactClass` function support, and more robust handling of unused identifier removal. It integrates seamlessly into the Babel ecosystem, typically configured via standard Babel configuration files such as `.babelrc` or `babel.config.js`.","language":"javascript","status":"active","version":"0.4.24","tags":["javascript","babel","babel-plugin","react","minification","propTypes"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-transform-react-remove-prop-types","imports":["{ \"plugins\": [\"transform-react-remove-prop-types\"] }","const plugin = require('babel-plugin-transform-react-remove-prop-types');\n// Then use `plugin` in Babel's Node API configuration."]},{"cmd":"yarn add babel-plugin-transform-react-remove-prop-types","imports":[]},{"cmd":"pnpm add babel-plugin-transform-react-remove-prop-types","imports":[]}],"homepage":null,"github":"https://github.com/oliviertassinari/babel-plugin-transform-react-remove-prop-types","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-transform-react-remove-prop-types","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/babel-plugin-transform-react-remove-prop-types/compatibility"}}