Closed
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
Labels
No labels