Skip to content

[Feature Request]: turn off code splitting by opt-in #3986

Description

@tats-u

What problem does this feature solve?

If you build a NPM library, the code splitting can often be harmful because it reduces the readability and analyzability of the output ESM files.

This is the most wanted feature in Rollup (rollup/rollup#2756).

Image

I want to use tsdown, a library bundler using Rolldown instead of esbuild, instead of tsup, but I cannot migrate from tsup to tsdown due to the fact rolldown and tsdown cannot disable the code splitting feature.

rolldown/tsdown#78

What does the proposed API look like?

Add config option to turn code splitting feature off.

Pinned by sapphi-red

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