Skip to content
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

fix(plugin-react): uncompiled JSX in linked pkgs #5669

Merged
merged 1 commit into from
Nov 13, 2021

Conversation

aleclarson
Copy link
Member

@aleclarson aleclarson commented Nov 13, 2021

Fixes #5642

When a linked package contains a .jsx or .tsx module, we need to apply the JSX transform using Babel. Previously, plugin-react would only look for compiled JSX within .jsx and .tsx modules (if they weren't within the project root) to decide if the Babel JSX transform should be applied.

@aleclarson aleclarson added p5-urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority) plugin: react labels Nov 13, 2021
@patak-dev patak-dev changed the title fix(plugin-react): automatic JSX runtime in linked pkgs w/ uncompiled JSX fix(plugin-react): uncompiled JSX in linked pkgs Nov 13, 2021
@patak-dev patak-dev merged commit 41a7c9c into vitejs:main Nov 13, 2021
@aleclarson aleclarson deleted the fix/react-2 branch February 25, 2022 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p5-urgent Fix build-breaking bugs affecting most users, should be released ASAP (priority)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@vitejs/plugin-react - Wrong JSX runtime used in linked dependency
2 participants