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: enable retainLines to get correct line numbers for jsxDev #246

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

ArnaudBarre
Copy link
Member

Fix #235

I did some benchmarking and using retainLines has no impact on transformation time, but using the babel JSX transform plugin slowdown by around 40% the pipeline. I think this fix is a good trade off and avoid to break other plugins that now rely on the JSX transformation to be done at the esbuild step.

@Artur-
Copy link

Artur- commented Oct 30, 2023

Thanks! I just spent some time trying to figure out why source references were off by 3 lines. This fixes the issue

@ArnaudBarre ArnaudBarre merged commit b783190 into main Oct 31, 2023
7 checks passed
@ArnaudBarre ArnaudBarre deleted the retainLines branch October 31, 2023 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lineNumber error for __source prop
4 participants