Closed harrycod1205 closed 3 months ago
register(StyleDictionary, {
excludeParentKeys: true,
});
It works properly when passing this option. It would be nice if the default value is true.
The default value should be false because the recommended method of exporting design tokens in the Tokens Studio plugin is multi-file mode. If you use this, you won't need that option. Exclude parent keys is for the special case of doing a single-file export because style-dictionary won't understand that it needs to skip the parent keys for resolving references.
What happened?
I am referencing a primitive token in a semantic token, but an error occurs when transforming.
Reproduction
I am using @tokens-studio/sd-transforms version ^1.0.1.
this is my tokens.json
error code below
Expected output
or
Version
1.0.1