Skip to content

[Bug]: __name is injected before the default exported class #7153

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

The output to have a code like:

var index_default = class {};
__name(index_default, "default");

What is actually happening?

The output has a code like:

__name(index_default, "default");
var index_default = class {};

System Info

https://github.com/rolldown/rolldown/commit/6ca52aa9eb3f475cecfcb8c80ee9dd9425ca870c

Any additional comments?

Caused by #7150
My bad, I didn't notice this one when reviewing

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions