Skip to content

[Bug]: incorrect execution order with CJS + advancedChunks #7449

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

init is output when the bundle is executed.

What is actually happening?

TypeError: globalThis.init is not a function error happens when the bundle is executed.

System Info

REPL 1.0.0-beta.53

Any additional comments?

It works correctly when experimental.strictExecutionOrder: true is set.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions