Skip to content

Commit

Permalink
avoid indent when printing import's inner comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Sep 21, 2022
1 parent 3f9f6c8 commit bdf52e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-generator/src/generators/modules.ts
Expand Up @@ -179,7 +179,7 @@ export function ExportDefaultDeclaration(
export function ImportDeclaration(this: Printer, node: t.ImportDeclaration) {
this.word("import");
this.space();
this.printInnerComments(node);
this.printInnerComments(node, false);

const isTypeKind = node.importKind === "type" || node.importKind === "typeof";
if (isTypeKind) {
Expand Down
@@ -1,6 +1,6 @@
/* 0 */
import
/* 1 */
/* 1 */
module
/* 2 */
from
Expand Down

0 comments on commit bdf52e8

Please sign in to comment.