Skip to content

Bug with some @extends defined in a module that is then imported. #2616

@jathak

Description

@jathak

@extend doesn't work properly in certain cases that mix @import and the module system.

I would expect

// entrypoint.scss
@import "library";

// _library.scss
@forward "concrete";

// _placeholder.scss
%foo {
  .bar {
    color: blue;
  }
}

// _concrete.scss
@use "placeholder";

.foo {
  @extend %foo;
}

to compile to:

.foo .bar {
  color: blue;
}

but instead I get no output.

It works fine if entrypoint instead @uses library, and it also works fine if %foo is on its own without .bar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions