@babel/plugin-proposal-private-methods enables the use of private methods and accessors in JavaScript classes, adhering to the relevant ECMAScript proposal. Private methods enhance encapsulation by preventing access from outside the class. Utilizing #methodName() for private methods and accessors, this plugin transforms the code into compatible JavaScript, improving code maintainability and future-proofing class structures while supporting modern development practices. Incorporate this to leverage private features in your babel pipeline.
From March 2024 to September 2025, @babel/plugin-proposal-private-methods downloads fluctuated, initially rising before stabilizing around 40 million. A surge occurred in June/July 2025, followed by a significant drop in September 2025, likely due to incomplete data for the current month.
The npm package @babel/plugin-proposal-private-methods saw frequent releases between December 2018 and June 2022, with peaks in 2019 and 2021. However, the release frequency significantly decreased after June 2022, with no new versions published from July 2022 through August 2025.