{"library":"babel-plugin-remove-object-properties","type":"library","category":null,"description":"Babel plugin for stripping object properties from AST nodes that match a supplied regex pattern. The current stable version is 1.0.2, released with low release cadence. It works during Babel's transpilation phase, removing nodes of type 'ObjectProperty' via regex. Unlike generic Babel visitors or AST manipulation utilities, this plugin provides a simple configurable approach to remove object properties (e.g., data-* attributes in React). Suitable for cleaning test attributes from production builds. Has minimal dependencies and is distributed on npm.","language":"javascript","status":"active","version":"1.0.2","tags":["javascript"],"last_verified":"Fri May 01","install":[{"cmd":"npm install babel-plugin-remove-object-properties","imports":["No import needed; configured via .babelrc or programmatic API.","\"plugins\": [[\"remove-object-properties\", { \"regexp\": \"data-*\" }]]","require('@babel/core').transform(code, { plugins: [[require('babel-plugin-remove-object-properties'), { regexp: 'data-*' }]] })"]},{"cmd":"yarn add babel-plugin-remove-object-properties","imports":[]},{"cmd":"pnpm add babel-plugin-remove-object-properties","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/babel-plugin-remove-object-properties","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}