mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 12:05:24 -04:00
Add sourcefile of module compiler
Signed-off-by: zhangrengao <zhangrengao1@huawei.com> Change-Id: Ie252dacee39b9ef1f8ed3dfeda68076593cb4ec9
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user