-
Notifications
You must be signed in to change notification settings - Fork 350
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
Line breaks being swallowed when fed to prettier #1240
Comments
What are you trying to do? It may be the way you're integrating babel and recast isn't preserving line information. |
I'm using recast to preserve as much of the source as possible when doing ast-based transformations. Tbh back when I integrated with it, I was not entirely sure if the way I am gluing these libraries correctly. That said, it did fix a source-preservation issue, so I was happy. The example provided is pretty much exactly how I am using it in my real code. |
In that case you might want to try |
Thanks for the pointer! It looks like
|
Hey there,
I've run into a bug which only pops up when I pass a recast AST into babel. I don't see anything obviously wrong in the recast AST, so I am not entirely sure if this here is even the right place to post the issue, but I thought I'd at least try to see if someone has an intuitive idea.
Runnable here on Replit
The text was updated successfully, but these errors were encountered: