Skip to content

Chunk hashes are unstable when maxParallelFileOps != 1 #5902

@wmertens

Description

@wmertens

Rollup Version

latest

Operating System (or Browser)

all

Node Version (if applicable)

20

Link To Reproduction

https://github.com/wmertens/rollup-unstable-repro

Expected Behaviour

The chunk hashes for a build should be stable, even when running the build multiple times.

Actual Behaviour

However, unless you set maxParallelFileOps: 1, the hashes change between rebuilds, at least in Qwik which has a lot of dynamic imports.

See the instructions on the repro repo. I was not able to reproduce this on stackblitz, presumably due to virtual file system.

(shoutout to @genki who discovered this workaround)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions