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
Support publishing with JSX #24
Comments
@lucacasonato @dsherret I'm a bit confused by this issue. I thought that we only consider the first encountered directive like that - ie. different directives in different files will override each other. I assume that this situation can't be hit because we're gonna pull the directive value from the config file and it's essentially the first one loaded that will actually have effect. Is this correct? |
No - directives are per file. |
For now we can just add a warning if your publish contains a .jsx / .tsx file saying that .jsx / .tsx are not supported yet, linking to this issue. |
PR adding a warning: denoland/deno#22631 |
To support React JSX I think this issue should be resolved so JSR published React+JSX modules works also in Deno, right ? |
To publish with JSX, we need to take the JSX relevant config options from
tsconfig.json
/deno.json
and put them into the source files via pragmas.For example, when publishing this index.jsx file with this deno.json file:
emit this before publish:
The text was updated successfully, but these errors were encountered: