背景
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 标识。