mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-23 07:20:22 +00:00
!644 In FA stage, the path of source file use relative path
Merge pull request !644 from 施涛/cherry-pick-1724337363
This commit is contained in:
commit
2848967f4f
@ -199,7 +199,7 @@ function writeFileSync(inputString, buildPath, keyPath, jsBundleFile, isToBin) {
|
|||||||
const buildJsonInfo = JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString());
|
const buildJsonInfo = JSON.parse(fs.readFileSync(process.env.aceBuildJson).toString());
|
||||||
sourceFile = toUnixPath(sourceFile.replace(buildJsonInfo.projectRootPath + path.sep, ''));
|
sourceFile = toUnixPath(sourceFile.replace(buildJsonInfo.projectRootPath + path.sep, ''));
|
||||||
} else {
|
} else {
|
||||||
sourceFile = toUnixPath(sourceFile);
|
sourceFile = toUnixPath(sourceFile.replace(process.env.projectRootPath + path.sep, ''));
|
||||||
}
|
}
|
||||||
output = toUnixPath(output);
|
output = toUnixPath(output);
|
||||||
cacheOutputPath = toUnixPath(cacheOutputPath);
|
cacheOutputPath = toUnixPath(cacheOutputPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user