source.decorators

  • Type:
type Decorators = {
  version?: 'legacy' | '2022-03';
};
  • Default:
const defaultDecorators = {
  version: 'legacy';
};

Used to configure the decorators syntax.

INFO

The usage of this configuration item is exactly the same as that of Rsbuild. For detailed information, please refer to Rsbuild - source.decorators.