Babel Plugin Parameter Decorator
JSON →A Babel plugin that transforms function parameter decorators to behave like TypeScript parameter decorators. Current stable version is 1.0.16, with infrequent releases. It enables parameter decorators on constructor parameters and method parameters when using Babel with legacy decorator support. Unlike TypeScript's built-in support, this plugin requires the separate `@babel/plugin-proposal-decorators` with `legacy: true` and optionally `@babel/plugin-proposal-class-properties`. It is the only dedicated Babel plugin for parameter decorator transformation as of 2024, filling a gap left by other decorator plugins. Works with both JavaScript and TypeScript via Babel presets.
Traffic · last 30 days ↑0% vs prev 7d
top countries 🇩🇪 Germany · 🇨🇦 Canada · 🇸🇬 Singapore · 🇺🇸 United States · 🇬🇧 United Kingdom