From b3f2d6a1a0293b2203cc9e9479d4af2a9f74ee2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20S=C3=A1nchez?= Date: Thu, 6 Jun 2024 09:36:29 +0200 Subject: [PATCH] change delete nodes flag --- plugin-src/transformers/transformInstanceNode.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin-src/transformers/transformInstanceNode.ts b/plugin-src/transformers/transformInstanceNode.ts index b1b59ae6..6006eb9b 100644 --- a/plugin-src/transformers/transformInstanceNode.ts +++ b/plugin-src/transformers/transformInstanceNode.ts @@ -21,11 +21,11 @@ export const transformInstanceNode = async ( ): Promise => { 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); }