jsxOf

tcmts.store.jsxOf · #j5vzvmxb · term · runs anywhere

The JSX runtime a definition compiles to: part of its IR (and so its hash), read from there.

export function jsxOf(ir: string): { jsx?: string } {
  const m = /^\["Def","[^"]*"(?:,\["Salt","[^"]*"\])?,\["Jsx","([^"]+)"\]/.exec(ir);
  return m ? { jsx: m[1]! } : {};
}

used by