Skip to content

Can we support incremental build? #447

@fake-car

Description

@fake-car

Description

Current Behavior
Even when passing only 1-2 changed files as entryPoints, unplugin-dts still performs full type analysis of the entire codebase, taking the same time as a complete rebuild (~8-10 seconds).

Expected Behavior
When only specific files are provided as entry points, the plugin should:

  • Analyze only the changed files and their direct dependencies
  • Skip unchanged files that were previously processed

Suggested solution

Implement a build cache mechanism similar to TypeScript's .tsbuildinfo to enable true incremental builds.

Alternative

No response

Additional context

No response

Validations

  • Read the FAQ.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions