When I try to print legal comments only with using oxc, I found, with passing
CodegenOptions {
comments: false,
legal_comments: LegalComment::Inline,
..
}
won't print legal/any comment.
The field is not used.
|
print_legal_comment: bool, |
Context:
- Rolldown follows esbuild's way to handle comments.
- Esbuild only preserve legal and annoatation comments.
- Rolldown intend to ensure this behavior too.