ngtsc previously could attempt to reuse the main ts.Program twice. This occurred when template type-checking was enabled and then an incremental build was performed. This breaks a TypeScript invariant - ts.Programs can only be reused once. The creation of the template type-checking program reuses the main program, rendering it moot. Then, on the next incremental build the main program would be subject to reuse again, which would crash inside TypeScript. This commit fixes the issue by reusing the template type-checking program from the previous run on the next incremental build. Since under normal circumstances the files in the type-checking program aren't changed, this should be just as fast. Testing strategy: a test is added in the incremental_spec which validates that program reuse with type-checking turned on does not crash the compiler. Fixes #30079 PR Close #30090
build(bazel): fix missing deps in ts_devserver targets under /modules/playground/src/web_workers (#29799)
build: rules_nodejs 0.26.0 & use @npm instead of @ngdeps now that downstream angular build uses angular bundles (#28871)
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript and other languages.
Quickstart
Changelog
Learn about the latest improvements.
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
68.6%
HTML
12.8%
JavaScript
8.4%
Pug
7%
Starlark
1.4%
Other
1.7%