Skip to content

Commit 354d974

Browse files
💡 Update comment
1 parent 3ff7459 commit 354d974

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎src/core/routerResolver.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,7 @@ async function resolveRouterReference(
392392
}
393393
}
394394

395-
// If it's not a dotted reference or we couldn't find the attribute, try building the router graph from the imported file directly.
396-
// This handles cases where the entire module is included as a router (e.g., "include_router(api_routes)").
395+
// Resolve by variable name for named imports, or fall back to full-file discovery
397396
const targetVarName = namedImport ? originalName : undefined
398397
return buildRouterGraphInternal(importedFileUri, ctx, targetVarName)
399398
}

0 commit comments

Comments
 (0)