!2795 fix worker no config error

Merge pull request !2795 from Bo Jiang/cherry-pick-1701085729
This commit is contained in:
openharmony_ci 2023-11-27 12:54:22 +00:00 committed by Gitee
commit 98e9bf5049
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -494,6 +494,7 @@ function loadWorker(projectConfig, workerFileEntry) {
const relativePath = path.relative(workerPath, item)
.replace(/\.(ts|js|ets)$/, '').replace(/\\/g, '/');
projectConfig.entryObj[`./${WORKERS_DIR}/` + relativePath] = item;
abilityPagesFullPath.push(path.resolve(item).toLowerCase());
}
});
}