Skip to content

[Bug]: Incorrect CSS output #4483

@ocavue

Description

@ocavue

Reproduction link or steps

https://github.com/issueset/rolldown-css-bug

What is expected?

I should get two output files:

  • dist/foo.css. This file should contain .foo.
  • dist/bar.css. This file should contain .foo and .bar.

What is actually happening?

  • I don't get dist/foo.css.
  • I get dist/bar.css. It only contains .bar.

System Info

System:
    OS: macOS 15.3.1
    CPU: (8) arm64 Apple M2
    Memory: 107.98 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.18.1 - /opt/homebrew/opt/node@20/bin/node
    Yarn: 1.22.22 - /opt/homebrew/opt/node@20/bin/yarn
    npm: 10.8.2 - /opt/homebrew/opt/node@20/bin/npm
    pnpm: 10.8.1 - /opt/homebrew/bin/pnpm
    bun: 1.2.9 - /opt/homebrew/bin/bun
  Browsers:
    Brave Browser: 122.1.63.169
    Chrome: 136.0.7103.93
    Chrome Canary: 138.0.7171.0
    Safari: 18.3
    Safari Technology Preview: 18.2
  npmPackages:
    rolldown: 1.0.0-beta.8-commit.e5c11c6 => 1.0.0-beta.8-commit.e5c11c6

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions