tivac/modular-css

@value aliases to namespaced values are lost

Closed this issue · 0 comments

tivac commented

Describe the bug

If you define a @value, in an intermediate file grab a reference to it via @value * as foo from "bar.mcss", and try to store that in an @value that other files can reference it'll output the value name instead of the actual value.

Reproduction

https://m-css.com/repl/#NrBEHoFsEMEsDsB0kDGBnNoA0oACA3aAGwFcBTAAgHt5KAzAJysgoB0I7YiyAmZdNOwDcreKMQB3KlQDm0CgG9RFFRRRUiVBgC5qtEfAC+oALpYw4Ttz6oM2PIVKUAVBWhoKaWAC8yHxsxsHFxkAMz8GMKiogTE5Hpkul6+aIgAjEKm5sHc4baYOLFOFGm67DRkwqYmQA

Logs

No response

System Info

## System:
 - OS: Windows 10 10.0.19045
 - CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
 - Memory: 92.41 GB / 127.90 GB
## Binaries:
 - Node: 18.16.0
 - npm: 9.6.6
## npmPackages:
 - @modular-css/path-aliases: ^28.0.0 => 28.0.0
 - @modular-css/stylelint-config: ^28.0.0 => 28.0.0
 - @modular-css/vite: ^29.1.2 => 29.1.2

Severity

blocking an upgrade