Skip to content

Hashbang comments are stripped from JS output #1038

Closed
@AlCalzone

Description

@AlCalzone

This is a followup to #541. Most cases were fixed when the issue was solved, except for hashbangs at the start of the file. Those are still omitted from the JS output, even when removeComments is false.

For example:
TS:

#!/usr/bin/env node

// ...code

JS:

// ...code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: EmitRelated to emit, AST printing, Program emit funcsDomain: ParserRelated to the parser

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions