Re:A Prettier JavaScript Formatter
by gopher_protocol on Tuesday January 10, 2017 @02:44PM
(#13368227)
I've found another issue where it just removes comments entirely inside an otherwise empty block.
becomes
Still a very nice pretty printer, though.
[ Parent
| on HN ]
I used Recast on a codebase at work to migrate to a new code style, and I ran into a long tail of issues with preserving comments that looked like they would require some significant work to fix. I know the author of Recast (Hi Ben) and corresponded with him a little bit about it at the time.