Skip to content

I lost the code format when I used '@Babel/parse' #11909

Answered by JLHwung
csywweb asked this question in Q&A
Discussion options

You must be logged in to vote

Babel does not preserve whitespaces after transform. If you are meant to preserve whitespaces, you can try https://github.com/benjamn/recast.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kaicataldo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants