From 2d39c63067e82d2d128b4637faef3e3848c3a356 Mon Sep 17 00:00:00 2001 From: shitao Date: Wed, 14 Aug 2024 14:47:06 +0800 Subject: [PATCH] In FA stage, the path of source file use relative path Issue: IAJIM8 Signed-off-by: shitao Change-Id: Icce9ea20da65011c753c30d30da660c6e04806f1 --- ace-loader/src/genAbc-plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ace-loader/src/genAbc-plugin.js b/ace-loader/src/genAbc-plugin.js index 42d525e..c74e5a8 100644 --- a/ace-loader/src/genAbc-plugin.js +++ b/ace-loader/src/genAbc-plugin.js @@ -199,7 +199,7 @@ function writeFileSync(inputString, buildPath, keyPath, jsBundleFile, isToBin) { const buildJsonInfo = JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString()); sourceFile = toUnixPath(sourceFile.replace(buildJsonInfo.projectRootPath + path.sep, '')); } else { - sourceFile = toUnixPath(sourceFile); + sourceFile = toUnixPath(sourceFile.replace(process.env.projectRootPath + path.sep, '')); } output = toUnixPath(output); cacheOutputPath = toUnixPath(cacheOutputPath); -- Gitee