Skip to content

Commit

Permalink
cli: fixed alias resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy authored Dec 25, 2017
1 parent d42040d commit 599a660
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/wepy-cli/src/resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ export default {
} else {
if ((lib.indexOf(k) === 0 && lib === k) || (lib !== k && lib.indexOf(k + '/') === 0)) {
this._cacheAlias[lib] = lib.replace(k, alias);
if (this._cacheAlias[lib] !== 'false') {
this._cacheAlias[lib] = path.resolve(this._cacheAlias[lib]);
}
}
}
}
Expand Down

0 comments on commit 599a660

Please sign in to comment.