Skip to content
This repository was archived by the owner on Feb 18, 2022. It is now read-only.
This repository was archived by the owner on Feb 18, 2022. It is now read-only.

importFrom should actually import variables (perhaps when preserve: true) #219

Open

Description

@mikestopcontinues

This follows #155

I hit the same issue, confused as to why prop: var(--custom); remains after var resolution, but not :root { --custom: val; }. It seems the default functionality should be to include the definitions block, at the very least when preserve: true. That said, I can see how this might break backwards compatibility, so what about an option to import the declarations? The alternative seems incredible dirty—generating a file just to reimport it. In fact, that solution causes infinite refreshes with hot reloading, generating and importing the same file every loop.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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