Skip to content

[Bug]: the name property of an anonymous default export function is not kept even if output.keepNames is enabled #7150

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

Running the bundled code outputs default.

What is actually happening?

Running the bundled code outputs dep_default.

System Info

REPL 1.0.0-beta.51

Any additional comments?

esbuild supports this correctly (esbuild try).

The same issue exists with classes (REPL).

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions