Skip to content

Switch to typescript project references and incremental builds #46773

@rudolf

Description

@rudolf

Developing Typescript with VSCode is currently frustratingly slow:

  • Opening files in another one of Kibana's 24 independant typescript projects sometimes takes > 60s "initializing TS language features"
  • cmd+clicking references within some projects takes > 60s (in my experience test seems to be the slowest)
  • Not all type errors show up under VSCode's "problems"
  • Running a complete typecheck takes > 60s which slows down the development cycle when doing large type refactors

I believe using [typescript references](https://www.typescriptlang.org/docs/handbook/project-references.html and incremental builds we should be able to make the build time much faster, have type errors show up without having to run scripts/type_check and improve type lookups and navigation in VSCode.

The first iteration #72280

Steps

Metadata

Metadata

Labels

Feature:DevelopmentTeam:CorePlatform Core services: plugins, logging, config, saved objects, http, ES client, i18n, etc t//Team:OperationsKibana-Operations Teamv7.10.0

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions