rocjs / roc

🐦 Modern JavaScript Development Ecosystem
MIT License
425 stars 23 forks source link

Changed the Node resolving to be more reliable, fixing some issues #173

Closed dlmr closed 7 years ago

dlmr commented 7 years ago

Sometimes _resolveFilename will be called without parent.id being present which would result in a crash with the previous logic. This change addresses this and instead uses parent.paths[0] for the same functionality.

This solves in particular some problems that have been seen when used together with babel-plugin-lodash.