Typescript: Create tsbuild public API and use incremental build in tsbuild --watch mode

Created on 21 Nov 2018  路  5Comments  路  Source: microsoft/TypeScript

  • [ ] Use incremental build in tsbuild --watch mode
  • [ ] Actual host apis for build with and without watch mapping to corresponding program
  • [ ] Move caching login #28629 to creation of host for tsbuild (without watch mode instead and have another function that createCompilerHostWithCaching instead.)
  • [ ] From #29161 We do not cache source files yet and that's something to be looked at later.
    Two things can be done:

    • To keep source files for program thats being updated in last few cycles

    • To release the source files if size exceeds or program is not used for few build cycles

    • CompilerHost and Likes api to be better once this is shaped up

Search Terms

Suggestion

Use Cases

Examples

Checklist

My suggestion meets these guidelines:

  • [ ] This wouldn't be a breaking change in existing TypeScript/JavaScript code
  • [ ] This wouldn't change the runtime behavior of existing JavaScript code
  • [ ] This could be implemented without emitting different JS based on the types of the expressions
  • [ ] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, etc.)
  • [ ] This feature would agree with the rest of TypeScript's Design Goals.
API Experience Enhancement Suggestion

Most helpful comment

Closed by #31432

All 5 comments

  • [x] create a new CompilerHost for each project so it knows the correct compilerOptions for that project (from discussion in https://github.com/Microsoft/TypeScript/pull/27560#discussion_r224996878)

Just curious, are the any updates here? Clicking through some of the links in the initial issue it looks like this might be close?

Is this issue resolved or planned to be resolved in certain release?

31432 is up for this

Closed by #31432

Was this page helpful?
0 / 5 - 0 ratings