Enables parsing syntax for ECMAScript decorators, proposed for class and method decorators. Integrating this plugin allows Babel to recognize and transform decorator syntax, adhering to standards like legacy, 2018-12, and newer proposals. This provides forward compatibility, enabling developers to safely use decorators in their codebases ahead of full ECMAScript standardization and wider browser support. It supports various configuration options to align with diverse decorator implementations through the decorators version option.
The @babel/plugin-syntax-decorators npm package has been actively maintained since its initial release in August 2018. Releases were sporadic until 2020, after which a more consistent, though still irregular, pattern emerged. The package experienced multiple months with zero releases, alternating with months with one or two version updates. The most recent release was in April 2025.
@babel/plugin-syntax-decorators downloads show a generally upward trend from February 2024 to July 2025, peaking in June 2025. August 2025 downloads are significantly lower than previous months, which is likely due to incomplete data for the current month.