Skip to content

Defining variable in a mixin fails and crashes #132

@ghost

Description

Defining a variable in a mixin crashes when forEach is called on an undefined variabale.

> Cannot read properties of undefined (reading 'forEach')

To reproduce: in the playground at https://madlittlemods.github.io/postcss-css-variables/playground/

@define-mixin foo {
	--line-height: 100px;
      line-height: var(--line-height);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions