Closed
Description
If we require from a sub-package, the output path will unnecessarily specify the full source path if it is specified in main
or types
in the package.json
Given:
./packages/pkg-a/package.json
With mapping: "@packages/*": "./packages/*"
@packages/pkg-a
will resolve to ./packages/pkg-a/subdir/main
Preferably, it should simply resolve to ./packages/pkg-a
This would not be a major issue except for the fact that it will break when the browser
setting is used. (see related issue: #105)