Skip to main content

Filters

Series of Filters to be used for finding webpack modules.

Properties

Methods

byDisplayName

Generates a function that filters by the displayName property.

ParameterTypeDescription
namestringName the module should have

Returns: function - A filter that checks for a displayName match


byKeys

Generates a function that filters by a set of properties.

ParameterTypeDescription
keys...stringList of property names

Returns: function - A filter that checks for a set of properties


byProps Deprecated

Returns: void


byPrototypeFields Deprecated

Returns: void


byPrototypeKeys

Generates a function that filters by a set of properties on the object's prototype.

ParameterTypeDescription
props...stringList of property names

Returns: function - A filter that checks for a set of properties on the object's prototype.


byRegex

Generates a function that filters by a regex.

ParameterTypeDescription
searchRegExpA RegExp to check on the module
filterfunctionAdditional filter

Returns: function - A filter that checks for a regex match


byStoreName

Generates a function that filters by a specific internal Store name.

ParameterTypeDescription
namestringName the store should have

Returns: function - A filter that checks for a Store name match


byStrings

Generates a function that filters by strings.

ParameterTypeDescription
strings...stringA list of strings

Returns: function - A filter that checks for a set of strings


combine

Generates a combined function from a list of filters.

ParameterTypeDescription
filters...functionA list of filters

Returns: function - Combinatory filter of all arguments