Skip to content

minifier: propagate unused detection over IIFEs #23777

Description

@sapphi-red
var unused = (function() {
  function test() {
  }
  return test
})()

playground
This can completely be removed. But Oxc minifier keeps the IIFE as it doesn't detect that the return statement does nothing.

Metadata

Metadata

Assignees

Labels

Fields

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions