Skip to content

[RFC] rax 组件工程支持不构建 es6 bundle #164

@maoxiaoke

Description

@maoxiaoke

背景

rax 组件工程构建 web 产物有以下三种:

if (target === WEB) {
  registerTask(`component-build-${target}`, getDistConfig(context, options));
  registerTask(`component-build-${target}-es6`, getES6Config(context, options));
  if (!disableUMD) {
    registerTask(`component-build-${target}-umd`, getUMDConfig(context, options));
  }
}

支持用户决定不构建 es6 bundle 产物。

方案

useConfig 新增 disableGenerateES6 标识。

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions