Skip to content

Composing from another file results in undefined #1

Closed
@NogsMPLS

Description

@NogsMPLS

given some css like this:

.base {
  composes: inline-block from '../styles.css';
  color: red;
}

.babelrc like this:

"plugins": [
        ["css-modules-transform", { "generateScopedName": "test_[name]__[local]" }]
    ]

the plugin outputs this:

var _button = {
    'base': 'test_component__base undefined',
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions