@rayburst/cli 0.3.5 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -258,8 +258,18 @@ function traceConfigProperty(configObject, propertyName) {
|
|
|
258
258
|
if (isVariableDeclaration(declaration)) {
|
|
259
259
|
return traceVariableDataFlow(declaration);
|
|
260
260
|
}
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
const parent = declaration.getParent();
|
|
262
|
+
if (isImportDeclaration(parent)) {
|
|
263
|
+
return parent;
|
|
264
|
+
}
|
|
265
|
+
if (parent && parent.getKind() === 283) {
|
|
266
|
+
const grandParent = parent.getParent();
|
|
267
|
+
if (grandParent) {
|
|
268
|
+
const importDecl = grandParent.getParent();
|
|
269
|
+
if (importDecl && isImportDeclaration(importDecl)) {
|
|
270
|
+
return importDecl;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
263
273
|
}
|
|
264
274
|
return declaration;
|
|
265
275
|
}
|
|
@@ -676,6 +686,8 @@ function detectConfigBasedComponents(sourceFile, nodes, nodeMap, edges, projectP
|
|
|
676
686
|
});
|
|
677
687
|
totalEdgesCreated++;
|
|
678
688
|
console.log(`[DEBUG] Created edge: RouterProvider -> Router`);
|
|
689
|
+
console.log(`[DEBUG] Source ID: ${routerProviderNode.id}`);
|
|
690
|
+
console.log(`[DEBUG] Target ID: ${routerNode.id}`);
|
|
679
691
|
}
|
|
680
692
|
} else {
|
|
681
693
|
console.warn("[DEBUG] RouterProvider external node not found, falling back to App -> Router edge");
|
package/dist/index.js
CHANGED
package/dist/vite-plugin.js
CHANGED