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

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

Open
mikestopcontinues opened this issue Apr 24, 2020 · 0 comments

Comments

@mikestopcontinues
Copy link

mikestopcontinues commented Apr 24, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant