Skip to content

[Bug]: Incremental JS/TS extraction loses calls through unchanged re-exports #5595

Done

Description

@rvitaliy

What happened?

Editing a TypeScript caller can remove its calls edge when it imports the callee through an unchanged barrel. A full extraction of the same files produces the edge.

Steps to reproduce

Create these three files in an empty directory.

// store.ts
export function load() {
  return 1;
}
// index.ts
export { load as run } from './store';
// main.ts
import { run } from './index';
export const task = () => run();
  1. Run graphify extract . --code-only --no-cluster. The graph contains a calls edge from task() to load() in store.ts.
  2. Insert a comment on the first line of main.ts, then run the same command. The incremental output loses the call edge.
  3. Run the extraction with --force. The edge returns with the new call-site line.

I expected the incremental output after step 2 to contain the same edge and source location as the full rebuild in step 3. I also reproduced this with export *, a chain of named and star re-exports, and a typed interface receiver imported through a barrel.

Tested on v8 at a7295bcaafb6ba003629dc7103178263d571f306 with Python 3.14.10 and macOS arm64. Related to #2230 and #2406, which track cross-file resolution during incremental builds.

Activity

  1. github-actions commented on Nov 28, 2026

    @github-actions

    Thanks for opening this issue, @rvitaliy. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions