fix: lost leading comment after named import (#10901)
* create test for 10892 * update expected output * fixed #10892 * add colon to restart build * remove colon as it makes tests fail
This commit is contained in:
committed by
Nicolò Ribaudo
parent
416ce35638
commit
f651f22f96
@@ -174,11 +174,9 @@ export default class CommentsParser extends BaseParser {
|
||||
(this.state.commentPreviousNode.type === "ExportSpecifier" &&
|
||||
node.type !== "ExportSpecifier"))
|
||||
) {
|
||||
this.adjustCommentsAfterTrailingComma(
|
||||
node,
|
||||
[this.state.commentPreviousNode],
|
||||
true,
|
||||
);
|
||||
this.adjustCommentsAfterTrailingComma(node, [
|
||||
this.state.commentPreviousNode,
|
||||
]);
|
||||
}
|
||||
|
||||
if (lastChild) {
|
||||
|
||||
Reference in New Issue
Block a user