Skip to content

[Bug]: CSS entrypoint always generates an empty js file #5085

@edoardocavazza

Description

@edoardocavazza

Reproduction link or steps

Hello!

I found out that using a CSS file as entrypoint generates an empty JS file. I also noticed that the entrypoint is passed to both entryFileNames and cssEntryFileNames with the same ChunkInfo.

https://repl.rolldown.rs/#eNptj8EOwiAMhl+l6YXLMu8Yn8HE8y4LA0PCCoFOZwjvLjinB216aPr//fI3o0GZMXrnJn+nXnky9tpzaltC+U/pUFXBzsFHBn4EDRkub9s5sPWUoICJfgaxn4uBKiAxbBj5c3CCPBCApbCw3OZWgnViIUH0B0uTXnuVkuiaWgaqPZBeXzkmbcbF7XwsHX78+yvfxfbBGNkqV9M3nPLORwlRT8cKxlIBt+pxYwuA5QnrwGXy

What is expected?

Only a CSS file is generated.

What is actually happening?

It generates an empty JS file for the entrypoint

System Info

REPL

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions