From 599a6608aa1369b127031eec540404f3303e1a2d Mon Sep 17 00:00:00 2001 From: Gcaufy Date: Mon, 25 Dec 2017 20:14:28 +0800 Subject: [PATCH] cli: fixed alias resolve --- packages/wepy-cli/src/resolve.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/wepy-cli/src/resolve.js b/packages/wepy-cli/src/resolve.js index d2ad942df..fd4d930f6 100644 --- a/packages/wepy-cli/src/resolve.js +++ b/packages/wepy-cli/src/resolve.js @@ -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]); + } } } }