1.0.1 • Published 7 years ago

dependency-tree-alias-hack v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

dependency-tree-alias-hack

global alias support for dependency-tree.

// global alias
global.__alias = {
    '@server': '/user/smq/2017/server/'
}

then we use the alias (supported by module-alias).

var index = require('@server/index');

now it can also resolve the deps well.


because it is an ugly modify, so I fork the package. 侵删(delete if forbid).