Essentially, I'm wanting the behavior provided by @babel/plugin-transform-react-jsx, but preserving all types, other TS language features, ESNext syntax, comments, etc. (I simply want to transform the TypeScript XML-formatted code into plain TypeScript using the specified JSX-factory function (e.g. React.createElement / jsx / bring-your-own / etc.)
// in
let name: any = 'world';
const div = <div>hello {name as string}</div>;
// out (classic runtime)
let name: any = 'world';
const div = React.createElement('div', null, 'hello ', name as string);
// out (automatic runtime)
let name: any = 'world';
const div = _jsxs('div', { children: ['hello ', name as string] });