Gets the file to which the import path path
, which must appear in this
module, resolves.
If the path resolves to a file directly, this is the result. If the path
resolves to a folder containing a main module (such as index.js
), then
that file is the result.