diff --git a/plugin-src/transformers/transformInstanceNode.ts b/plugin-src/transformers/transformInstanceNode.ts index 4850c229..de3ee5dd 100644 --- a/plugin-src/transformers/transformInstanceNode.ts +++ b/plugin-src/transformers/transformInstanceNode.ts @@ -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; }