-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(export platform): fixing infinite loop when there are reference e…
…rrors (#531) When there were property reference errors (could not find reference or circular reference) Style Dictionary would get caught in an infinite loop. To fix this, when Style Dictionary tries to resolve an erroneous reference (circular or not found), it replaces the reference with `undefined`. This is different than previous behavior where Style Dictionary would leave the erroneous reference. In both cases, Style Dictionary throws an error and fails, so this should not have a discernible effect. We also feel replacing the reference with `undefined` makes logical sense as that reference is undefined because it cannot be resolved.
- Loading branch information
1 parent
7e7889a
commit 6078c80
Showing
2 changed files
with
81 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters