Add sourcefile of module compiler

Signed-off-by: zhangrengao <zhangrengao1@huawei.com>
Change-Id: Ie252dacee39b9ef1f8ed3dfeda68076593cb4ec9
This commit is contained in:
zhangrengao
2022-08-25 22:28:48 +08:00
parent 38d4f7d23d
commit daa8e5e29b
+1 -1
View File
@@ -60,7 +60,7 @@ function es2abcByWorkers(jsonInput: string, cmd: string): Promise<void> {
for (let i = 0; i < inputPaths.length; ++i) {
const input: string = inputPaths[i].tempFilePath;
const abcFile: string = input.replace(/\.js$/, '.abc');
const singleCmd: any = `${cmd} "${input}" --output "${abcFile}"`;
const singleCmd: any = `${cmd} "${input}" --output "${abcFile}" --source-file "${input}"`;
logger.debug('gen abc cmd is: ', singleCmd);
try {
childProcess.execSync(singleCmd);