From 3ed56fff5b022950df5edc2f9301bb9f7190a2bf Mon Sep 17 00:00:00 2001 From: gdh1995 Date: Fri, 26 Jul 2024 01:40:12 +0800 Subject: [PATCH] build: fix a bug about name mangling for https://github.com/gdh1995/vimium-c/issues/1178 --- gulpfile.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gulpfile.js b/gulpfile.js index 0c22dc4db..cc16d9eb7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -758,7 +758,9 @@ const postTerser = exports.postTerser = async (terserConfig, file, allPaths) => } if (allPathStr.indexOf("extend_click_vc.") >= 0) { get() - contents = contents.replace(/ ?\bVC\b ?/, "") + if (!contents.includes("VC(1)")) { + contents = contents.replace(/ ?\bVC\b ?/, "") + } logger("%o: %o %s", ":extend_click_vc", contents.length, "bytes in file"); } if (locally) {