The @babel/plugin-transform-react-pure-annotations Babel plugin automatically annotates React components with /*#__PURE__*/ to enable dead code elimination. This optimization informs tree-shaking tools that the component is side-effect-free when invoked as a function, leading to smaller bundle sizes and improved performance. It wraps component definitions (function and class components) to ensure they are marked pure, streamlining the optimization process without requiring manual annotation. Optimizing your React code with this plugin contributes to a leaner and faster application.
@babel/plugin-transform-react-pure-annotations downloads show strong growth from March 2024 (37M) to July 2025 (71M). Downloads peaked in June 2025 (73M) and slightly decreased in August (65M). September 2025 downloads are incomplete, showing only 17M so far.
The @babel/plugin-transform-react-pure-annotations package saw frequent releases in 2020 (May, June, October), then sporadic releases through 2024, with some months having multiple versions. The package releases slowed down significantly since the beginning of 2023. The latest release was in April 2025 (version 7.27.1), with no releases in the subsequent months.