From 8a308cd3070b3e90344b2c69bb82c68f11b19fe3 Mon Sep 17 00:00:00 2001 From: zhangrengao Date: Fri, 19 Aug 2022 15:36:10 +0800 Subject: [PATCH] fix move temp module file to build dir Signed-off-by: zhangrengao Change-Id: I2d5afa75204ad8e17a67e781a75442224032f233 --- compiler/src/gen_abc_plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/gen_abc_plugin.ts b/compiler/src/gen_abc_plugin.ts index 477ef2e..b0af0f9 100644 --- a/compiler/src/gen_abc_plugin.ts +++ b/compiler/src/gen_abc_plugin.ts @@ -687,7 +687,7 @@ function filterIntermediateModuleByHashJson(buildPath: string, moduleInfos: Arra updateJsonObject[input] = hashInputContentData; updateJsonObject[abcPath] = hashAbcContentData; mkdirsSync(path.dirname(moduleInfos[i].buildFilePath)); - if (projectConfig.buildArkMode === 'debug' && fs.existsSync(filterModuleInfos[i].tempFilePath)) { + if (projectConfig.buildArkMode === 'debug' && fs.existsSync(moduleInfos[i].tempFilePath)) { fs.copyFileSync(moduleInfos[i].tempFilePath, moduleInfos[i].buildFilePath); } fs.copyFileSync(genAbcFileName(moduleInfos[i].tempFilePath), genAbcFileName(moduleInfos[i].buildFilePath));