Skip to content

Multiple JSX Runtimes #86

Closed Answered by ArnaudBarre
viridia asked this question in Q&A
Jan 15, 2023 · 2 comments · 5 replies
Discussion options

You must be logged in to vote

I think this use case never come up before but it should be possible to handle it in the future for TS now that jsx transformation is done via esbuild because the esbuild plugin correctly resolve options for nested tsconfig. The issue is that the options for jsx runtime is overridden for all files here: https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/src/index.ts#L136-L156

You can try to patch it and remove these lines. I will see if I can simplify this in the next major version

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
3 replies
@viridia
Comment options

@ArnaudBarre
Comment options

@viridia
Comment options

Answer selected by viridia
Comment options

You must be logged in to vote
2 replies
@viridia
Comment options

@viridia
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants