Skip to content

[Feature Request]: Inject CSS into Bundle #3681

@PointSingularity

Description

@PointSingularity

What problem does this feature solve?

Currently, Rolldown supports bundling CSS, but it always outputs the CSS file separately from the bundle.

It would simplify many things, if we could only get a single file output (js or html).

There are many Rollup plugins that provide this functionality already:

This feature is also supported on Rsbuild/Rspack.

What does the proposed API look like?

Proposed API:

Having an inlineCSS option on output. Similar to the already existing inlineDynamicImports.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions