Skip to content

Commit c1524c4

Browse files
committed
fixed shebang emission
1 parent f788822 commit c1524c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/printer/printer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4317,6 +4317,9 @@ func (p *Printer) emitJSDocNode(node *ast.Node) {
43174317
//
43184318

43194319
func (p *Printer) emitShebangIfNeeded(node *ast.SourceFile) {
4320+
if ast.NodeIsSynthesized(node.AsNode()) {
4321+
return
4322+
}
43204323
shebang := scanner.GetShebang(node.Text())
43214324
if shebang != "" {
43224325
p.writeComment(shebang)

0 commit comments

Comments
 (0)