UNPKG

@builder.io/mitosis

Version:

Write components once, run everywhere. Compiles to Vue, React, Solid, and Liquid. Import code from Figma and Builder.io

30 lines (29 loc) 813 B
import { MitosisComponent } from '../../types/mitosis-component'; import { Project } from 'ts-morph'; export type ParseMitosisOptions = { jsonHookNames?: string[]; compileAwayPackages?: string[]; typescript: boolean; tsProject?: { project: Project; }; filePath?: string; /** * When `true`, the `blocksSlots` field on Mitosis Nodes will be used to transform * deeply nested JSX elements found on properties. Note that not every generator * supports parsing `blocksSlots`. * Defaults to `false`. */ enableBlocksSlots?: boolean; }; export type ResolvedImport = { path: string; value: string; }; export type Context = { cwd?: string; builder: { component: MitosisComponent; resolvedImports?: ResolvedImport[]; }; };