Closed
Description
In addition to supporting React, babel supports generic JSX transforms, using a pragma like this:
/** @jsx mypackage.doSomething */
Would it be possible to respect this pragma. It's not a Babel invention, to my knowledge React itself required it until recently. In the case in the demo, observing the pragma would mean not only ignoring the fact that React
is not defined (react-in-jsx-scope), but also ensuring that mypackage.doSomething
is defined.
I am currently working on a project using jsx in a non-React context, and I imagine I am not the only one.