From edc0ab1e78f4e5b021c1d5f077828d30ef8c9e5e 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: IALW0R Signed-off-by: shitao Change-Id: I56d58b6f7d2c809a3bc98733bca885b5a127b277 --- 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