Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide API for faster incremental compilers #9282

Closed
alexeagle opened this issue Jun 20, 2016 · 3 comments
Closed

Provide API for faster incremental compilers #9282

alexeagle opened this issue Jun 20, 2016 · 3 comments
Assignees
Labels
API Relates to the public API for TypeScript Fixed A PR has been merged for this issue Suggestion An idea for TypeScript

Comments

@alexeagle
Copy link
Contributor

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

@DanielRosenwasser DanielRosenwasser added Suggestion An idea for TypeScript API Relates to the public API for TypeScript labels Jun 21, 2016
@TheLarkInn
Copy link
Member

+1 😏

@TheLarkInn
Copy link
Member

Tagging @ahejlsberg per conversation we had today about this issue. This is the number one problem we have reported from those who are going from Babel to TypeScript and looking for fast incremental builds. Related issue #9017 for more context Anders.

@mhegazy
Copy link
Contributor

mhegazy commented Jan 20, 2018

Should be fixed by #20234

@mhegazy mhegazy closed this as completed Jan 20, 2018
@microsoft microsoft locked and limited conversation to collaborators Jul 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
API Relates to the public API for TypeScript Fixed A PR has been merged for this issue Suggestion An idea for TypeScript
Projects
None yet
Development

No branches or pull requests

5 participants