ReactCompile

tcmts.cli.web.ReactCompile · #epkw7a6c · type

oxc-transform-react's transformSync.

export type ReactCompile = (
  filename: string,
  source: string,
  options: {
    reactCompiler: { target: string };
    jsx: { runtime: "automatic"; development?: boolean };
  },
) => { fatal: boolean; code: string; errors: unknown[] };

used by