I was running into a problem where running the extension in a file using an external style library was hanging. I don't know how common this is, but I noticed a bunch of 404s in the console:
Debugging the extension, I found that some of the styles in the allStyles array were undefined (perhaps related to the 404s?). Filtering these out before iterating fixed my problem so I thought I'd propose this change.
Ok, I figured out that the 404s were because Figma apparently doesn't export styles named with leading underscores. I'm still having other problems which I'll keep investigating, but closing this for now.
I was running into a problem where running the extension in a file using an external style library was hanging. I don't know how common this is, but I noticed a bunch of 404s in the console:
Debugging the extension, I found that some of the styles in the
allStyles
array wereundefined
(perhaps related to the 404s?). Filtering these out before iterating fixed my problem so I thought I'd propose this change.