Skip to content

[Compressor] support folding if statements #3704

@hyf0

Description

@hyf0
if (true) {
  require('a')
} else {
  require('b')
}

should at least become

{
  require('a')
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory - New feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions