Trait AfterResolvePlugin

Source
pub trait AfterResolvePlugin:
    Send
    + Sync
    + NonLocalValue
    + ValueDebug {
    // Required methods
    fn after_resolve_condition(
        self: Vc<Self>,
    ) -> Vc<AfterResolvePluginCondition>
       where Self: Sized;
    fn after_resolve(
        self: Vc<Self>,
        fs_path: Vc<FileSystemPath>,
        lookup_path: Vc<FileSystemPath>,
        reference_type: Value<ReferenceType>,
        request: Vc<Request>,
    ) -> Vc<ResolveResultOption>
       where Self: Sized;
}

Required Methods§

Source

fn after_resolve_condition(self: Vc<Self>) -> Vc<AfterResolvePluginCondition>
where Self: Sized,

A condition which determines if the hooks gets called.

Source

fn after_resolve( self: Vc<Self>, fs_path: Vc<FileSystemPath>, lookup_path: Vc<FileSystemPath>, reference_type: Value<ReferenceType>, request: Vc<Request>, ) -> Vc<ResolveResultOption>
where Self: Sized,

This hook gets called when a full filepath has been resolved and the condition matches. If a value is returned it replaces the resolve result.

Trait Implementations§

Implementors§