MadLittleMods / postcss-css-variables

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation
https://madlittlemods.github.io/postcss-css-variables/playground/
Other
536 stars 62 forks source link

Defining variable in a mixin fails and crashes #132

Open gjhltn opened 1 year ago

gjhltn commented 1 year ago

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);
}