From ce914fce919fcdf91266f7592c34e352f3f55b09 Mon Sep 17 00:00:00 2001 From: zhangrengao Date: Wed, 17 Aug 2022 10:31:05 +0800 Subject: [PATCH] fix mov filtermodule js file Signed-off-by: zhangrengao Change-Id: Ifb726aad0086043b16cc944f451649fe343d6d1b --- compiler/src/gen_abc_plugin.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/src/gen_abc_plugin.ts b/compiler/src/gen_abc_plugin.ts index d6016aa..477ef2e 100644 --- a/compiler/src/gen_abc_plugin.ts +++ b/compiler/src/gen_abc_plugin.ts @@ -724,8 +724,8 @@ function writeModuleHashJson(): void { fs.copyFileSync(filterModuleInfos[i].tempFilePath, filterModuleInfos[i].buildFilePath); } fs.copyFileSync(genAbcFileName(filterModuleInfos[i].tempFilePath), genAbcFileName(filterModuleInfos[i].buildFilePath)); - if (projectConfig.buildArkMode === 'debug' && fs.existsSync(genSourceMapFileName(moduleInfos[i].tempFilePath))) { - fs.copyFileSync(genSourceMapFileName(moduleInfos[i].tempFilePath), genSourceMapFileName(moduleInfos[i].buildFilePath)); + if (projectConfig.buildArkMode === 'debug' && fs.existsSync(genSourceMapFileName(filterModuleInfos[i].tempFilePath))) { + fs.copyFileSync(genSourceMapFileName(filterModuleInfos[i].tempFilePath), genSourceMapFileName(filterModuleInfos[i].buildFilePath)); } } const hashFilePath: string = genHashJsonPath(buildPathInfo);