Skip to content

Commit

Permalink
私有组件判断条件调整
Browse files Browse the repository at this point in the history
  • Loading branch information
吴伦毅 committed Sep 16, 2017
1 parent f519540 commit fe705cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/wepy-cli/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,13 @@ const utils = {
let wpyExt = cache.getExt();

let src = '';
if (com.indexOf(path.sep) !== -1||com.indexOf('@') === -1) {
if (com.indexOf(path.sep) !== -1 && com.indexOf('@') === -1) {
if (this.isFile(com + wpyExt)) {
src = com + wpyExt;
}
} else {
let o = resolve.getMainFile(com);

if (o) {
src = path.join(o.dir, o.file);
} else {
Expand Down

0 comments on commit fe705cf

Please sign in to comment.