
If a project being built with ngtsc has no templates to check, then ngtsc previously generated an empty typecheck file. This seems to trigger some pathological behavior in TS where the entire user program is re-checked, which is extremely expensive. This likely has to do with the fact that the empty file is not considered an ES module, meaning the module structure of the program has changed. This commit causes an export to be produced in the typecheck file regardless of its other contents, which guarantees that it will be an ES module. The pathological behavior is avoided and template type-checking is fast once again. PR Close #31922
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
86.3%
JavaScript
8.5%
HTML
1.8%
Starlark
1.7%
CSS
1%
Other
0.6%