Skip to content

New rollup version results in different generated output and drops some if/else cases #4504

@digaus

Description

@digaus

Rollup Version

2.74.0

Operating System (or Browser)

MacOS, Linux, Windows

Node Version (if applicable)

12.x.x

Link To Reproduction

https://github.com/digaus/rollup-demo

Expected Behaviour

Since 2.74.0 angular lib compilation now produces different and wrong results.

This is a major issue for us and might break other libs and applications because it is not noticed while compiling. It completely drops use cases...

This happens when bundling to FESM2015. In ESM2015 code still looks fine...

Adding "rollup": "2.73.0" to the package.json fixes this for now...

See https://github.com/digaus/rollup-demo for reproduction

Actual Behaviour

Do not drop any code :)

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