output.enableLatestDecorators

  • 类型: boolean
  • 默认值: false

是否要使用 新版 decorator 提案 进行编译。

默认情况下,Builder 在编译装饰器时采用 旧版 decorator 提案

output.enableLatestDecorators 设置为 true 时,Builder 会采用新版 decorator 提案 (2018-09 版本) 进行编译。

WARNING

Deprecated:该配置已废弃,请使用 source.decorators 配置项代替。

export default {
  output: {
    enableLatestDecorators: true,
  },
};