Skip to content

Automatically inject the JSX runtime #558

Closed
@mquandalle

Description

I recently migrated a React package to tsup and encountered the issue React is not defined

The solution is to specify a JSX runtime which is possible since the introduction of the --inject option in #390. But it still require creating a react-shim.js file.

Inferring the correct runtime from tsconfig would greatly improve the developer experience.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions