Closed liujingbreak closed 8 years ago
I have not tried it but would welcome a PR that adds support.
Oh, my bad just again, tested again. New results
The target module's package.json file only has "browser" field, no "main" field.
Then,
it works in sync version resolve.sync('@xx/yy')
but failed to find that module in async way resolve('@xx/yy', callback)
Issue gone, I can not reproduce it again, probably it's my bad.
Looks like it does not support it yet? module name liks
@someScope/my-module
https://docs.npmjs.com/misc/scope