- Add 'export_statement' to import_types for JS/TS/TSX configs
- Extend _import_js to detect 'export { X } from ./mod' re-exports
- Emit 're_exports' edges linking barrel files to source symbols
- Preserve walk-through for 'export function/const' declarations
- Add 're_exports' to clean_edges allowlist for cross-file edges
Tested on a 976-file Next.js codebase: detects 162 re_exports edges
and 5760 symbol-level imports (previously 0 for both).
12 lines
348 B
TypeScript
12 lines
348 B
TypeScript
// Barrel file that re-exports from submodules
|
|
export { readCookie, writeCookie } from "./cookieHelpers";
|
|
export * from "./storageHelpers";
|
|
export { basePathRewrite, getFullUrl } from "./urlHelpers";
|
|
|
|
// Also has local exports (should still be extracted as nodes)
|
|
export function localHelper() {
|
|
return "local";
|
|
}
|
|
|
|
export const LOCAL_CONST = 42;
|