Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/@unocss/core.ts>SourceCodeTransformer

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
interface SourceCodeTransformer
import { type SourceCodeTransformer } from "https://deno.land/x/netzo@0.4.72/deps/@unocss/core.ts";

Properties

name: string
optional
enforce: SourceCodeTransformerEnforce

The order of transformer

optional
idFilter: (id: string) => boolean

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

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

The transform function