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 0e0bacf5 fix(builder): always import dataset & transform component as 
they have no entry for now, resolves apache/echarts#19124
0e0bacf5 is described below

commit 0e0bacf5189b49374790bd31a9475dd09c53fa9e
Author: plainheart <[email protected]>
AuthorDate: Sun Sep 24 07:22:39 2023 +0800

    fix(builder): always import dataset & transform component as they have no 
entry for now, resolves apache/echarts#19124
---
 builder/build.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/builder/build.js b/builder/build.js
index 9050e40b..7fcf68af 100644
--- a/builder/build.js
+++ b/builder/build.js
@@ -28,7 +28,8 @@ define(function (require) {
     }
 
     // Including charts
-    (BUILD_CONFIG.charts || '').split(',').forEach(function (chart) {
+    var charts = (BUILD_CONFIG.charts || '').split(',');
+    charts.forEach(function (chart) {
         chart && topCode.push(`import "echarts/src/chart/${chart}";`);
     });
 
@@ -37,7 +38,10 @@ define(function (require) {
     }
 
     // Including components
-    (BUILD_CONFIG.components || '').split(',').forEach(function (component) {
+    var components = (BUILD_CONFIG.components || '').split(',');
+    // PENDING: always import dataset & transform component as they have no 
entry for now
+    components.push('dataset', 'transform');
+    components.forEach(function (component) {
         component && topCode.push(`import 
"echarts/src/component/${component}";`);
     });
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to