Skip to content

Future: Move bundling from Rollup to Rolldown #4669

@birkskyum

Description

@birkskyum

We use rollup for bundling.

The vast majority of Rollup use today happens as part of vite projects (stats).

The Vite team use rollup for prod builds, because of the larger feature set and flexible plugin system (supports bundle splitting and more), but rollup is really slow compared to a lot of alternatives, so for dev builds esbuild is used instead.

To simplify Vite, the Rolldown projects is in development - it's a rust port of rollup, with compatible api/feature set, and performance superior to esbuild.

We can swap to Rolldown with minimal changes when there's a stable release. It's quite far (Roadmap) in development already - I've tested the latest release in this codebase, and it's getting there.

This would make the CI faster, and tasks that require adjusting and validating the build config many times would be easier:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions