Skip to content

Build optimization breaks code (Removes necessary break from switch) #4930

@DeepDoge

Description

@DeepDoge

Rollup Version

3.20.2

Operating System (or Browser)

Rollup REPL

Node Version (if applicable)

No response

Link To Reproduction

Rollup REPL

Expected Behaviour

break keyword shouldn't be removed and "error 3" shouldn't be thrown.

Actual Behaviour

break keyword is being removed on build and that causes "error 3" to be thrown

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions