This is an automated email from the ASF dual-hosted git repository. wangzx pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/echarts-www.git
The following commit(s) were added to refs/heads/master by this push: new e357bb93 fix(builder): only import `transform` component when version is v5. (apache/echarts#19256) e357bb93 is described below commit e357bb932e1d7f87d3b377a5523d9aa85737f0b6 Author: plainheart <y...@all-my-life.cn> AuthorDate: Mon Oct 30 17:07:11 2023 +0800 fix(builder): only import `transform` component when version is v5. (apache/echarts#19256) --- builder/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/builder/build.js b/builder/build.js index da0946c9..e2f15ad3 100644 --- a/builder/build.js +++ b/builder/build.js @@ -40,7 +40,8 @@ define(function (require) { // Including components var components = (BUILD_CONFIG.components || '').split(','); // PENDING: always import dataset & transform component as they have no entry for now - components.push('dataset', 'transform'); + components.push('dataset'); + isVersion5 && components.push('transform'); components.forEach(function (component) { component && topCode.push(`import "echarts/src/component/${component}";`); }); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org