Skip to content

Support @jsx pragma #23

Closed
Closed
@brandonhorst

Description

@brandonhorst

In addition to supporting React, babel supports generic JSX transforms, using a pragma like this:

/** @jsx mypackage.doSomething */

demo

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions