Skip to content

[Bug]: license comment on the same line is not kept #7387

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

The output to be:

//#region entry.js
//! Copyright notice 1
console.log("in a"); //! Copyright notice 2
//! Copyright notice 3

//#endregion

What is actually happening?

The output is:

//#region entry.js
//! Copyright notice 1
console.log("in a");
//! Copyright notice 3

//#endregion

System Info

REPL 1.0.0-beta.53

Any additional comments?

Found in esbuild tests.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions