angular/packages/compiler-cli
Alan Agius e9fcbb8af1 fix(compiler): remove TypeScript from linker (#61618)
This commit removes the direct dependency on TypeScript within the linker, addressing a performance overhead that was adding between 500ms to 1s to compilation times for applications.

The primary cause of this overhead was the linker's direct reliance on TypeScript's which was caused by importing from barrel files. While convenient, barrel files are detrimental to code splitting and code motion. They force the bundling of all exported modules, even if only a subset is actually used.

By removing the usage of this barrel file and restructuring the imports to be more granular, we can avoid unnecessary TypeScript imports.
 Furthermore, TypeScript has now been changed to an optional peer dependency as using only the linker does not require TypeScript.

PR Close #61618
2025-05-26 08:46:00 +00:00
..
integrationtest refactor(core): remove unused injection props (#59209) 2025-04-15 17:33:02 -04:00
linker fix(compiler): remove TypeScript from linker (#61618) 2025-05-26 08:46:00 +00:00
private build: properly compile tests in core with Angular compiler (#60268) 2025-03-07 11:00:47 -08:00
src fix(compiler): remove TypeScript from linker (#61618) 2025-05-26 08:46:00 +00:00
test refactor(compiler): replace attribute interpolation instructions (#61557) 2025-05-21 15:13:47 +00:00
BUILD.bazel build: update all esbuild target to node20 (#61606) 2025-05-22 13:02:03 -07:00
esbuild.config.js refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
index.ts build: migrate compiler-cli/src/ngtsc/docs to ts_project (#61181) 2025-05-09 15:59:46 +00:00
package.json fix(compiler): remove TypeScript from linker (#61618) 2025-05-26 08:46:00 +00:00
tsconfig-test.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00
tsconfig.json build: prepare for compiler-cli to be using ts_project (#61181) 2025-05-09 15:59:46 +00:00