mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
In FA stage, the path of source file use relative path
Issue: IAJIM8 Signed-off-by: shitao <shitao40@huawei.com> Change-Id: Icce9ea20da65011c753c30d30da660c6e04806f1
This commit is contained in:
parent
790aeb478a
commit
2d39c63067
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user