do not use
fork of browserify/node-resolve that prefers modules
implements the node require.resolve()
algorithm
such that you can require.resolve()
on behalf of a file asynchronously and
synchronously. This fork prefers module
to main
in package.json
.
Just use resolve
. Add a packageFilter that does what this library hardcoded. See example.