Skip to content

Commit

Permalink
change delete nodes flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Cenadros committed Jun 6, 2024
1 parent 4a9b42f commit b3f2d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-src/transformers/transformInstanceNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ export const transformInstanceNode = async (
): Promise<ComponentInstance | undefined> => {
const mainComponent = await node.getMainComponentAsync();

if (mainComponent === null) {
if (mainComponent === null || isUnprocessableComponent(mainComponent)) {
return;
}

if (isExternalComponent(mainComponent) || isUnprocessableComponent(mainComponent)) {
if (isExternalComponent(mainComponent)) {
await registerExternalComponents(mainComponent);
}

Expand Down

0 comments on commit b3f2d6a

Please sign in to comment.