You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_.clone() is only a shallow copy, so when resolveObject is called it mutates the original properties object. This can have dire consequences because that means the properties object could change from platform to platform.
Fix: change to _.cloneDeep
The text was updated successfully, but these errors were encountered:
This is the offending line:
https://github.com/amzn/style-dictionary/blob/master/lib/utils/resolveObject.js#L29
_.clone()
is only a shallow copy, so when resolveObject is called it mutates the original properties object. This can have dire consequences because that means the properties object could change from platform to platform.Fix: change to
_.cloneDeep
The text was updated successfully, but these errors were encountered: