Skip to content

Commit

Permalink
Print inner comments in export default
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Oct 25, 2022
1 parent 3c01491 commit 4007d8c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/babel-generator/src/generators/modules.ts
Expand Up @@ -186,6 +186,7 @@ export function ExportDefaultDeclaration(
}

this.word("export");
this.printInnerComments(node);
this.space();
this.word("default");
this.space();
Expand Down
Expand Up @@ -3,6 +3,7 @@
class /* 5 */C /* 6 */ {/* 7 */} /* 8 */

/* A */
export default /* E */ /* C */@dec1
export /* B */
default /* E */ /* C */@dec1
/* D */@dec2
class /* F */{/* G */} /* H */
Expand Up @@ -5,4 +5,5 @@
/* A */
@dec1
/* B */@dec2
/* C */export default /* E */class /* F */{/* G */} /* H */
/* C */export
/* D */ default /* E */class /* F */{/* G */} /* H */
Expand Up @@ -5,4 +5,5 @@
/* A */
@dec1
/* B */@dec2
/* C */export default /* E */class /* F */{/* G */} /* H */
/* C */export
/* D */ default /* E */class /* F */{/* G */} /* H */

0 comments on commit 4007d8c

Please sign in to comment.