This is an automated email from the ASF dual-hosted git repository.

100pah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-www.git

commit 414c2a4e63435edbe531ab07b3bd3edc9c6a6065
Author: 100pah <[email protected]>
AuthorDate: Thu May 28 17:15:15 2026 +0800

    Support auto download [email protected] (for custom builder).
---
 .gitignore   |  2 ++
 bin/build.js | 13 +++++++++++++
 2 files changed, 15 insertions(+)

diff --git a/.gitignore b/.gitignore
index 96bee05f..6ff74965 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,5 @@ js/vendors/echarts-gl
 js/vendors/echarts-graph-modularity
 js/vendors/echarts-simple-transform
 js/vendors/echarts-simple-option-player
+js/vendors/zrender
+js/vendors/zrender@*
diff --git a/bin/build.js b/bin/build.js
index 35463ab0..57349d18 100644
--- a/bin/build.js
+++ b/bin/build.js
@@ -493,7 +493,20 @@ async function downloadLatestEChartsLibraries(config) {
         });
 
         fs.unlinkSync(`${tmpDir}/${lib}.tgz`);
+
+        if (lib === 'zrender') {
+            // Custom builder (https://echarts.apache.org/en/builder.html) 
require zrender
+            // with version specifier (e.g., require a `[email protected]` 
directory).
+            duplicateToVersionSpecifier(lib, version, targetDir)
+        }
     }));
+
+    function duplicateToVersionSpecifier(lib, version, libSrc) {
+        const targetDir = path.resolve(wwwDir, './js/vendors/', 
`${lib}@${version}`);
+        fse.removeSync(targetDir);
+        fse.ensureDirSync(targetDir);
+        fse.copySync(libSrc, targetDir);
+    }
 }
 
 async function buildSpreadsheet(config) {


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

Reply via email to