mirror of
https://gitee.com/openharmony/developtools_ace_js2bundle
synced 2024-11-27 01:20:27 +00:00
Fix bugs of gen abc
1.Fix gen abc failed, but previewer executes success 2.Fix fail to excute manage worker script with special path Signed-off-by: zhangrengao <zhangrengao1@huawei.com> Change-Id: Icb9f774d712f583b63bd4edc4d9d63db2fe64309
This commit is contained in:
parent
da0f990e3e
commit
6da6e03157
@ -201,7 +201,7 @@ const writeError = (buildPath, content) => {
|
||||
function printResult(buildPath) {
|
||||
printWarning();
|
||||
printError(buildPath);
|
||||
if (errorCount + warningCount + noteCount > 0) {
|
||||
if (errorCount + warningCount + noteCount > 0 || process.env.abcCompileSuccess === 'false') {
|
||||
let result;
|
||||
const resultInfo = {};
|
||||
if (errorCount > 0) {
|
||||
|
@ -685,7 +685,7 @@ function processWorkersOfPreviewMode(splittedData, cmdPrefix, workerNumber) {
|
||||
};
|
||||
processEnv.arkEnvParams = JSON.stringify(arkEnvParams);
|
||||
|
||||
let genAbcCmd = `${nodeJs} ${path.resolve(__dirname, manageBunldeWorkersScript)}`;
|
||||
let genAbcCmd = `${nodeJs} "${path.resolve(__dirname, manageBunldeWorkersScript)}"`;
|
||||
childProcess.execSync(genAbcCmd, {env: processEnv});
|
||||
processExtraAssetForBundle();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user