You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered: