{"library":"babel-plugin-react-remove-properties","type":"library","category":null,"description":"This Babel plugin, currently at stable version 0.3.1, is designed to remove specified React component properties during the JavaScript transpilation process. Its primary use case is for optimizing production builds by stripping out attributes like `data-test` or `data-qa`, which are often used for testing and debugging but are unnecessary in deployed code. This minification helps reduce the final bundle size and prevents exposing internal testing hooks to end-users. The package has seen a slow release cadence, with recent updates focused on maintenance and minor feature enhancements. It differentiates itself through its focused application on React properties, providing a cleaner, more efficient production DOM compared to manually removing these attributes or leaving them in. It's configured via Babel's standard `.babelrc` or `babel.config.js` files, allowing for granular control over which properties (including those matching regular expressions) are removed, typically activated only in production environments.","language":"javascript","status":"maintenance","version":"0.3.1","tags":["javascript","babel","babel-plugin","react","minification","properties"],"last_verified":"Wed May 27","install":[{"cmd":"npm install babel-plugin-react-remove-properties","imports":["\"react-remove-properties\"","[\"react-remove-properties\", {\"properties\": [\"data-test\", /my-suffix-expression$/]}]","require('babel-plugin-react-remove-properties')"]},{"cmd":"yarn add babel-plugin-react-remove-properties","imports":[]},{"cmd":"pnpm add babel-plugin-react-remove-properties","imports":[]}],"homepage":null,"github":"https://github.com/oliviertassinari/babel-plugin-react-remove-properties","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-react-remove-properties","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-react-remove-properties/compatibility"}}