mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 04:18:58 +00:00
This implements parser support for ECMAScript decorators in Bun's transpiler. Key changes: - Added Decorator struct to AST for standard ECMAScript decorators - Added decorators fields to Class, Property, and Arg structures - Implemented parseDecorators and parseDecoratorExpression functions - Added support for detecting experimental vs standard decorators via tsconfig - Updated parser to handle @decorator syntax for ECMAScript decorators - Added experimental_decorators field to tsconfig parser and Parser.Options This lays the groundwork for ECMAScript decorator support. The lowering/transformation implementation will need to be added in a follow-up to actually transpile decorators to runnable code. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>