Skip to content

[Feature Request]: merge a facade entry chunk into the original chunk #8935

Description

@shankerwangmiao

Reproduction link or steps

Suppose there are two entry point files A.js and B.js, and an additional file C.js. An exported function in A.js calls a function provided by C.js. B.js is a simple wrapper and re-exports the function from A.js.

A minimal reproducer can be found here.

What is expected?

Expected behavior might be generating two chunks, one containing the code from A.js and C.js, the other containing re-export declarations in B.js.

This behavior is what rollup does.

What is actually happening?

Actual behavior of rolldown is to generate three chunks, one containing the code from A.js and C.js, the other two containing re-export declarations.

System Info

N/A

Any additional comments?

Is this behavior intended?

Metadata

Metadata

Assignees

No one assigned

    Fields

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions