[][src]Trait swc_bundler::Hook

pub trait Hook: Sync + Send {
    fn get_import_meta_url(
        &self,
        span: Span,
        file: &FileName
    ) -> Result<Option<Expr>, Error>; }

Note: As this is rarely used, it's recommended to pass it as a trait object.

Required methods

fn get_import_meta_url(
    &self,
    span: Span,
    file: &FileName
) -> Result<Option<Expr>, Error>

Return None to preserve import.meta.url

Loading content...

Implementors

Loading content...