pub type ComponentSourceTransform = for<'a> fn(ComponentSource<'a>) -> Result<Option<TransformedComponentSource>>;Expand description
Stateless source transform installed into a ComponentRegistry.
It may resolve the registry key and provide separate SSR and client views.
Returning Ok(None) preserves the authored source without allocation.
ยงErrors
Returns a crate::Diagnostic-carrying error when the authored source is
invalid.