F

byFilePath

Builds a filter matching a module whose tracked file path equals the given path.

function byFilePath(path: string): MetroFilter

Parameters

NameTypeDescription
pathstring

The file path the module must have been imported from.

Returns

MetroFilter

A MetroFilter matching the module loaded from that file path.