Skip to content

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

Merged
patak-cat merged 1 commit intovitejs:mainfrom
aleclarson:fix/react-2
Nov 13, 2021
Merged

fix(plugin-react): uncompiled JSX in linked pkgs#5669
patak-cat merged 1 commit intovitejs:mainfrom
aleclarson:fix/react-2

Conversation

@aleclarson
Copy link
Copy Markdown
Contributor

@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-cat patak-cat 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-cat patak-cat 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