-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Does not work with babel's babel-plugin-jsx-control-statements plugin #73
Comments
Ah! So the 3.0 version of the plugin can't work with any Babel plugins that work with JSX code since esbuild handles it now. Will Babel plugins still work for pure JS files? I just want to understand if any Babel plugins would work with new 3.0 plugin version. Is it possible to update the docs with these details? |
Everything should as normal, it just the plugin that doesn't handle the case of "jsx output". The plugin should output Other plugins that don't depend on that or handle it should work the same. |
Cool thanks! You can mark this issue closed. |
Describe the bug
I'm using the babel-plugin-jsx-control-statements plugin to transform code within JSX files. But the transform does not work.
The above code should output
foo
since the condition is true. The transformation happens but we get a string representation of it instead.This issue does not happen in the 2.2.0 version of vite-plugin-react
Reproduction
https://stackblitz.com/edit/vitejs-vite-hcxdwa?file=src/App.jsx
Steps to reproduce
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: