Skip to content

minifier: pure annotated iife call on unused variable initializer is not removed #17480

@sapphi-red

Description

@sapphi-red
// input
var removeThis = /* @__PURE__ */ (() => stuff())();

// output (actual)
stuff();

// output (expected)

playground

Found in rolldown/rolldown#7512. Probably related to #16477 cc @armano2

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions