Used to configure the decorators syntax.
Modern.js uses legacy
syntax by default (Stage 1 proposal), equivalent to TypeScript's experimentalDecorators: true
.
You can adjust the decorator syntax to the Stage 3 decorator proposal by setting decorators.version
to 2022-03
.
For detailed usage, please refer to Rsbuild - source.decorators.