mirror of
https://gitee.com/openharmony/third_party_weex-loader
synced 2024-11-27 01:20:23 +00:00
!58 编译工具链js语言增加testrunner编译支持
Merge pull request !58 from guyuanzhang/js_suport
This commit is contained in:
commit
4435220dab
@ -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`)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user