type Decorators = {
version?: 'legacy' | '2022-03';
};const defaultDecorators = {
version: 'legacy';
};Used to configure the decorators syntax.
The usage of this configuration item is exactly the same as that of Rsbuild, but the default value is different. For detailed information, please refer to Rsbuild - source.decorators.
We found that most projects still use the legacy version of the decorator syntax, so the default value is legacy.