Closed fengcms closed 4 years ago
Hi @fengcms !
So, I won't investigate in depth, but last time someone tried to use module-alias
with zeit/ncc
, that was not possible. So I'm guessing it's not working for the same reason. If you want more details, see issue #81 .
However, there's a silver lining - you can configure some sort of aliases in pkg
too. Not sure if you can make it work, but worth giving it a try: https://github.com/zeit/pkg#config
Not much we can do from module-alias, so I'll close this issue.
Test project file tree:
Code of index.js
Code of config/index.js
Config in package.json
It's work in nodejs, print this:
but, if I run this
pkg index.js
, print this:so.... I want cry...some one help me?