Skip to content

2.55.0 regression - Unable to bundle semver@7 #4195

@nicolo-ribaudo

Description

@nicolo-ribaudo

Rollup Version

2.55.0

Operating System (or Browser)

Ubuntu 21.04, but it probably doesn't matter

Node Version (if applicable)

16.3.0

Link To Reproduction

https://github.com/nicolo-ribaudo/rollup-2.55-bug-semver-7

Expected Behaviour

Rollup 2.55 should produce the same valid code as produced by Rollup 2.54

Actual Behaviour

Due to a cyclic dependency, it emits some code that uses a variable before that it's initialized.


⚠️ When updating to @rollup/plugin-commonjs@19, this bug disappears. However, a minor version of Rollup shouldn't force me to update a major version of a plugin (also, @rollup/plugin-commonjs@19 isn't working for me: rollup/plugins#962).

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