Skip to content

5.0.2 introduces a bug #25

@iamvdo

Description

@iamvdo

I don't really know the problem, but let's take 2 files:

/*file 1*/
@import 'file2.css';
.file1 {}
/*file 2*/
.file2--1 {}
.file2--2 {}

And add a console.log(styles.nodes[1].parent) on line index.js:67.

When using postcss-import@5.0.1, you get 3 nodes in parent, while with postcss-import@5.0.2, you only get 2 nodes, only those from file2.css. I checked your modifications, but my brain doesn't find where the problem is.

And this breaks some tests when using postcss-import with other modules.

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