swc_bundler

Trait Hook

source
pub trait Hook: Sync + Send {
    // Required method
    fn get_import_meta_props(
        &self,
        span: Span,
        module_record: &ModuleRecord,
    ) -> Result<Vec<KeyValueProp>, Error>;
}

Required Methods§

source

fn get_import_meta_props( &self, span: Span, module_record: &ModuleRecord, ) -> Result<Vec<KeyValueProp>, Error>

Implementors§