stefanpenner / hash-for-dep

7 stars 11 forks source link

Throws if module has no entry point #22

Closed topaxi closed 8 years ago

topaxi commented 8 years ago

If a module (like babel-runtime) has no entry point (no index.js nor main defined in package.json), The resolvePkg() functions throws with Cannot find module 'babel-runtime/'.

I'm unsure how this could be fixed.

stefanpenner commented 8 years ago

I'm unsure how this could be fixed.

it just needs to find the dir root. of the given module