toUnitPath of jsbundle

Signed-off-by: zhangrengao <zhangrengao1@huawei.com>
Change-Id: Ic6e8e55b86b5982f7131a4f0e783cc867d35fd23
This commit is contained in:
zhangrengao
2022-08-26 15:28:50 +08:00
parent 44d94da2c9
commit 9ccfd135ca
+2
View File
@@ -361,6 +361,8 @@ function writeFileSync(inputString: string, output: string, jsBundleFile: string
let sufStr: string = output.replace(buildParentPath, '');
let cacheOutputPath: string = "";
if (process.env.cachePath) {
output = toUnixPath(output);
cacheOutputPath = toUnixPath(cacheOutputPath);
cacheOutputPath = path.join(process.env.cachePath, TEMPORARY, sufStr);
} else {
cacheOutputPath = output;