Support package.json subpath exports? #97
benallfree
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://nodejs.org/api/packages.html#subpath-exports
Example:
Currently,
require()only searches formain, but main is not always the CJS version. In this case, it would berequire('pocketbase/cjs').Does it seem like a good idea to add this capability? I think this has become standard in node module resolution.
Beta Was this translation helpful? Give feedback.
All reactions