Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SourceCodeTransformer

interface SourceCodeTransformer {
idFilter?: (id: string) => boolean;
name: string;
transform: (
id: string,
) => Awaitable<{
highlightAnnotations?: HighlightAnnotation[];
}
| void
>
;
}

§Properties

§

The order of transformer

§
idFilter?: (id: string) => boolean
[src]

Custom id filter, if not provided, the extraction filter will be applied

§
name: string
[src]
§
transform: (code: MagicString, id: string, ctx: UnocssPluginContext) => Awaitable<{
highlightAnnotations?: HighlightAnnotation[];
}
| void
>
[src]

The transform function