function getRequires(file, options) {
	return [...fileRequires(file, options)].map(async (moduleId)=>{
		if (options.internalOnly && (moduleId.charAt(0) !== '.') && (moduleId.charAt(0) !== '/')) {
			if (options.mapper[moduleId] !== true) return undefined;
		}

		if (options.mapper.hasOwnProperty(moduleId) && !(options.internalOnly && (options.mapper[moduleId] === true))) {
			if (options.mapper[moduleId]) return resolveModule(options.mapper[moduleId], options);
			return undefined;
		}
		return resolveModule(moduleId, options, path.dirname(file.path));
	});
}
function getRequires(file, options) {
	return [...fileRequires(file, options)].map(async (moduleId)=>{
		if (options.internalOnly && (moduleId.charAt(0) !== '.') && (moduleId.charAt(0) !== '/')) {
			if (options.mapper[moduleId] !== true) return undefined;
		}

		if (options.mapper.hasOwnProperty(moduleId) && !(options.internalOnly && (options.mapper[moduleId] === true))) {
			if (options.mapper[moduleId]) return resolveModule(options.mapper[moduleId], options);
			return undefined;
		}
		return resolveModule(moduleId, options, path.dirname(file.path));
	});
}
function getRequires ( file , options ) { return [ ... fileRequires ( file , options ) ] . map ( async ( moduleId ) => { if ( options . internalOnly && ( moduleId . charAt ( 0 ) !== '.' ) && ( moduleId . charAt ( 0 ) !== '/' ) ) { if ( options . mapper [ moduleId ] !== true ) return undefined ; } if ( options . mapper . hasOwnProperty ( moduleId ) && ! ( options . internalOnly && ( options . mapper [ moduleId ] === true ) ) ) { if ( options . mapper [ moduleId ] ) return resolveModule ( options . mapper [ moduleId ] , options ) ; return undefined ; } return resolveModule ( moduleId , options , path . dirname ( file . path ) ) ; } ) ; }
Get all the require paths for a given file.

@param {VinylFile} file		File to get for.
@param {Object} options		Options object.
@returns {Array.<string>}	Dependency paths.
Get all the require paths for a given file .