Skip to content

Commit 739eb0a

Browse files
committed
added commented code to build to use for debugging issue with missing references and filtering when theming is applied
1 parent 28fdc7a commit 739eb0a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/tokens/scripts/build.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,13 @@ StyleDictionary.registerTransform({
7272
isThemeable = true;
7373
}
7474

75+
// TODO! understand how we can make this themeable using `usesReferences`/`getReferences`
76+
// if (token.key === "{typography.display-500.font-family}") {
77+
// console.log('usesReferences', usesReferences(token.original.$value));
78+
// const refs = getReferences(token.original.$value, StyleDictionaryInstance.tokenMap);
79+
// console.log('refs', refs);
80+
// }
81+
7582
// TODO understand if we really need this to split themeable vs non-themeable tokens
7683
// if (usesReferences(token.original.$value)) {
7784
// const refs = getReferences(token.original.$value, StyleDictionaryInstance.tokenMap);

0 commit comments

Comments
 (0)