SourceCodeTransformer
interface SourceCodeTransformer {
enforce?: SourceCodeTransformerEnforce;
idFilter?: (id: string) => boolean;
name: string;
transform: (
}code: MagicString,
id: string,
ctx: UnocssPluginContext,
) => Awaitable<{highlightAnnotations?: HighlightAnnotation[];
} | void>;§Properties
§
enforce?: SourceCodeTransformerEnforce
[src]The order of transformer
§
idFilter?: (id: string) => boolean
[src]Custom id filter, if not provided, the extraction filter will be applied
§
transform: (code: MagicString, id: string, ctx: UnocssPluginContext) => Awaitable<{
[src]highlightAnnotations?: HighlightAnnotation[];
} | void>The transform function