mirror of
https://gitee.com/openharmony/third_party_weex-loader
synced 2024-11-23 07:20:51 +00:00
IssueNo:#I53XB0
Description: add js testrunner suport Sig: SIG_ApplicationFramework Feature or Bugfix: Feature Binary Source: No Signed-off-by: guyuanzhang <zhangguyuan@huawei.com> Change-Id: I7aa65aa439cdf8624dc0129c3f9925d9e832dc0c
This commit is contained in:
parent
be9468773b
commit
06a00ead1c
@ -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