swc_bundler

Trait Resolve

pub trait Resolve: Send + Sync {
    // Required method
    fn resolve(
        &self,
        base: &FileName,
        module_specifier: &str,
    ) -> Result<Resolution, Error>;
}

Required Methods§

fn resolve( &self, base: &FileName, module_specifier: &str, ) -> Result<Resolution, Error>

Implementations on Foreign Types§

§

impl<R> Resolve for &R
where R: Resolve + ?Sized,

§

fn resolve(&self, base: &FileName, src: &str) -> Result<Resolution, Error>

§

impl<R> Resolve for Box<R>
where R: Resolve + ?Sized,

§

fn resolve(&self, base: &FileName, src: &str) -> Result<Resolution, Error>

§

impl<R> Resolve for Arc<R>
where R: Resolve + ?Sized,

§

fn resolve(&self, base: &FileName, src: &str) -> Result<Resolution, Error>

Implementors§

§

impl Resolve for NodeModulesResolver

§

impl<R> Resolve for CachingResolver<R>
where R: Resolve,

§

impl<R> Resolve for TsConfigResolver<R>
where R: Resolve,