Skip to content

[Bug]: Sass plugin does not compile styles for compound selectors containing ::v-deep/:deep() #5485

Open
@mietl

Description

@mietl

Version

System:
    OS: macOS 15.5
    CPU: (8) arm64 Apple M2
    Memory: 1.23 GB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Browsers:
    Chrome: 137.0.7151.120
    Safari: 18.5
  npmPackages:
    @rsbuild/core: ^1.3.22 => 1.3.22 
    @rsbuild/plugin-sass: ^1.3.2 => 1.3.2 
    @rsbuild/plugin-vue2: ^1.0.3 => 1.0.3

Details

When using ‎@rsbuild/plugin-sass, styles for compound selectors that include ‎::v-deep are missing in the compiled CSS output. This happens when ‎::v-deep is used together with other class selectors in a compound selector.

Reproduce link

https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example/csb-k44dnf/draft/happy-goldberg

Reproduce Steps

Steps to Reproduce:

  1. Use a compound selector with repeated class names in a ‎.scss file, for example:
.b{
   font-size: 21px
}
.b, .from deep(.a){
  color: red;
}
  1. Check the compiled CSS output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions