-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically inject the JSX runtime #558
Comments
Also ran into this problem. It's very confusing for the bundler to not recognise the |
This configuration seems to work for me (at this moment at last). Would be great to put it somewhere in docs. It was very time consuming to make it work.
|
Was this fixed in #715 (comment) ? |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 areact-shim.js
file.Inferring the correct runtime from
tsconfig
would greatly improve the developer experience.The text was updated successfully, but these errors were encountered: