-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Description
In #9017 (comment)
@mhegazy suggested the possibility that TS could include an API that makes it easy to build incremental compilers, similar to the --watch
behavior of TSC.
Given a ts.Program
object, and a string[]
of files that were modified, re-read and parse only the changed files, getPreEmitDiagnostics
only for the changed files, emit only the changed files, and give the updated Program.
Right now it's too much work for us to write our own tsc
that has the --watch
behavior.
cc @IgorMinar
TheLarkInn, HerringtonDarkholme, devoto13, SlurpTheo, fbartho and 2 moreTheLarkInn, johnnyreilly and devoto13
Metadata
Metadata
Assignees
Labels
APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issueSuggestionAn idea for TypeScriptAn idea for TypeScript