SourceCodeTransformer
interface SourceCodeTransformer {
enforce?: SourceCodeTransformerEnforce;
idFilter?: (id: string) => boolean;
name: string;
transform: (
}code: MagicString,
id: string,
ctx: UnocssPluginContext,
) => Awaitable<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<void>
[src]The transform function