-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue
Description
Bug Report
Current Behavior
The code printer adds a newlines before and after block comments
Input Code
Input:
f(/* hi */ b);Output:
f(
/* hi */
b
);function f() {
return /* bye */ 42;
}Output:
function f() {
return (
/* bye */
42
);
}Expected behavior/code
I expect there to be no extra newlines added when the block comment is attached to an expression. Only add newlines when the comments are attached to statements.
Environment
- Babel version(s): 7.3.3
Huxpro
Metadata
Metadata
Assignees
Labels
i: needs triageoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issueA closed issue/PR that is archived due to age. Recommended to make a new issue