WebpackLoaderBuiltinConditionSet

Trait WebpackLoaderBuiltinConditionSet 

Source
pub trait WebpackLoaderBuiltinConditionSet:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required method
    fn match_condition(
        &self,
        condition: &str,
    ) -> WebpackLoaderBuiltinConditionSetMatch;
}
Expand description

A collection of framework-provided conditions for user (or framework) specified loader rules (WebpackRules) to match against.

Required Methods§

Source

fn match_condition( &self, condition: &str, ) -> WebpackLoaderBuiltinConditionSetMatch

Determines if the string representation of this condition is in the set. If it’s not valid, an issue will be emitted as a collectible.

Trait Implementations§

Implementors§