amzn / style-dictionary

A build system for creating cross-platform styles.
https://styledictionary.com
Apache License 2.0
3.94k stars 560 forks source link

`resolveReferences` to handle object-value tokens #1239

Open jorenbroekema opened 5 months ago

jorenbroekema commented 5 months ago

resolveReferences currently only works on string values, but object-value tokens can also contain reference so they should be handled as well.

Right now because Style Dictionary uses a object traversal wrapper around resolveReferences (resolveObject, private API), this isn't a problem usually, but it is a problem if you're aiming to use the standalone resolveReferences utility on object-values