Add options to retain lines which helps babel to preserve newlines/whitespace#326
Add options to retain lines which helps babel to preserve newlines/whitespace#326levibuzolic wants to merge 1 commit intoKhan:masterfrom
Conversation
GunnarMM
left a comment
There was a problem hiding this comment.
Looks good to me. I have also used your PR to convert a big enterprise app and it did its job brilliantly!
|
@GunnarMM My company would benefit a lot from this, but I see this project has not had any new commits in the master branch since April 2021. How likely is this going to be merged? |
|
😢 wish we could merge this @GunnarMM |
|
Merging is blocked. I don't have power here. Maybe @levibuzolic can take a look at the merge requirements |
|
@MasonChinkin @GunnarMM @DeadManPoe given the specs don't run anymore and there hasn't been a PR merge or release in 2+ years I don't think it's going to happen. But if you do want to use This retain lines feature is far from perfect and we found it did shift a few of our comments up a line in a few places, but it was definitely an improvement over the default behaviour. |
Implements a
--retain-linesoption to pass through to Babel'sretainLinesoption. This allows Babel to try and preserve line positions when generating output code -- the resulting output can be quite ugly, but prettier does a great job of cleaning it up.Input
Output
Fixes #237