Skip to content

fails to tree-shake unused circular dependency chains #7666

Description

@edison1105

minimal reproduction

https://github.com/edison1105/rolldown-treeshake-repro

Reproduce

# clone the repro
pnpm install
pnpm build

see dist/rolldown.js and dist/rollup.js for differences

What is expected?

The unused function should be removed

What is actually happening?

The unused function persists in the bundle

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions