React / foldkit-react-codegen

transformSourceFile

function · packages/react-codegen/src/transform.ts:319

function transformSourceFile(
  fileName: string,
  sourceText: string,
  options?: TransformOptions,
): TransformResult

Compiles every Foldkit view function in a module (any function with an HtmlBuilder parameter) to a function returning React elements, taking dispatch where it took h. Fails with diagnostics rather than emitting code for a construct it cannot translate with the same meaning.