0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-03 05:10:13 -05:00

Filtering design system nodes (#130)

* filtering design system nodes

* Delete .changeset/eight-berries-hunt.md
This commit is contained in:
Alex Sánchez 2024-06-03 10:06:18 +02:00 committed by GitHub
parent 92167aca42
commit 3f9189c7c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,9 +24,10 @@ export const transformInstanceNode = async (
* We do not want to process component instances in the following scenarios:
*
* 1. If the component does not have a main component.
* 2. If the component does not have parent (it comes from an external design system).
* 2. If the component comes from an external design system.
* 3. If th component does not have a parent. (it's been removed)
*/
if (!mainComponent || mainComponent.parent === null) {
if (!mainComponent || mainComponent.remote || mainComponent.parent === null) {
return;
}