WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Build in parallel to speed up build time #541

@aymericzip

Description

@aymericzip

Clear and concise description of the problem

When defining multiple build configurations (e.g., ESM, CJS, and DTS), Rollup/Rolldown runs each build sequentially, even when they are independent. This can slows down total build time in CI/CD pipelines.

Suggested solution

Add a parallel: true option or automatically detect when builds can be executed concurrently.

Each configuration shares most options (entry, plugins, external) and only differs in format/output.
So adding multiple outputs for one entry would be also nice

Alternative

Run multiple tsdown instances in parallel using npm scripts or programmatic Promise.all, but this adds complexity and is not integrated with Rollup’s lifecycle or plugin system. Will also not works with tsdown CLI

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions