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.
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 usesparent.paths[0]
for the same functionality.This solves in particular some problems that have been seen when used together with
babel-plugin-lodash
.