fix(builder): only import `transform` component when version is v5. (apache/echarts#19256)
diff --git a/builder/build.js b/builder/build.js
index da0946c..e2f15ad 100644
--- a/builder/build.js
+++ b/builder/build.js
@@ -40,7 +40,8 @@
     // 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}";`);
     });