Skip to content

Comments not preserved in referenced includes #2675

@betaorbust

Description

@betaorbust

Problem

When a file is included with (reference) in-property comments are stripped out. This breaks the only workaround to #2674.

Bug example

Input

// test.less
@import (reference) 'imported-file.less';
.my-test{
    .my-mixin();
}
// imported-file.less
.my-mixin(){
    color: red /* comment that should be there */;
}

Output

.my-test {
  color: red;
}

Expected Output

.my-test {
  color: red /* comment that should be there */;
}

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