!58 编译工具链js语言增加testrunner编译支持

Merge pull request !58 from guyuanzhang/js_suport
This commit is contained in:
openharmony_ci 2022-04-25 01:46:46 +00:00 committed by Gitee
commit 4435220dab
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -194,6 +194,9 @@ function loader (source) {
}
function checkApp(_this) {
if (process.env.abilityType === 'testrunner') {
return true;
}
return _this.resourcePath === path.resolve(process.env.projectPath,
process.env.abilityType === 'page' ? 'app.js' : `${process.env.abilityType}.js`)
}