Skip to content

Importing values results in export #79

Open
@okonet

Description

@okonet

Having variables in the separate file

/* variables.css */
@value mobile: 480px;
@value tablet: 768px;
@value desktop: 960px;
@value display: 1200px;

and when importing like this:

/* myfile.css */
@value mobile, display from "../variables.css";

.root {
...
}

and then

import styles from '.myfile.css';
console.log(styles);

I see that styles now contain imported variables.

{
  root: "some_hash",
  mobile: "480px",
  display: "1200px"
}

I'm not sure if this is expected behavior but I'd expect this behavior only from variables.css.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions