Skip to content

Expose incremental Compile-on-Save builder API #17493

@DanielRosenwasser

Description

@DanielRosenwasser

In #10879, @sheetalkamat is working on bringing the same logic in the language server to Compile-on-Save. We would like to expose that as an API so that other build tools (e.g. Webpack loaders, gulp plugins, Broccoli plugins) and editors (any editor using TS Server) can get:

  • automated resolution logic to detect which files need to be "updated"
  • incremental type-checks to only check the bare minimum of files
    • this means that, for example, requesting errors & building will only trigger a type check on updated/new/impacted files. By "impacted files", I mean files whose type information could potentially have been changed by other updated/new files.

Some prior work that motivated the scenarios here can be seen on PR #3687 by @dbaeumer.

We'd like to elicit feedback from others in the community. Some folks that immediately come to mind are @TheLarkInn @johnnyreilly @jbrantly @s-panferov @mattbierner @jrieken @dbaeumer @alexeagle @chuckjaz @ivogabe and @krisselden (Forgive me if I excluded anyone, that's already a decent number of people 😄).

Metadata

Metadata

Assignees

Labels

CommittedThe team has roadmapped this issueCommunity ToolingThis might be better handled by tooling from the community instead of built into TypeScriptDomain: APIRelates to the public API for TypeScriptFixedA PR has been merged for this issueSuggestionAn idea for TypeScript

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions