mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
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
86 lines
2.2 KiB
JSON
86 lines
2.2 KiB
JSON
{
|
|
"name": "@angular/compiler-cli",
|
|
"version": "0.0.0-PLACEHOLDER",
|
|
"description": "Angular - the compiler CLI for Node.js",
|
|
"typings": "index.d.ts",
|
|
"bin": {
|
|
"ngc": "./bundles/src/bin/ngc.js",
|
|
"ng-xi18n": "./bundles/src/bin/ng_xi18n.js"
|
|
},
|
|
"type": "module",
|
|
"exports": {
|
|
".": {
|
|
"types": "./index.d.ts",
|
|
"default": "./bundles/index.js"
|
|
},
|
|
"./package.json": {
|
|
"default": "./package.json"
|
|
},
|
|
"./linker": {
|
|
"types": "./linker/index.d.ts",
|
|
"default": "./bundles/linker/index.js"
|
|
},
|
|
"./linker/babel": {
|
|
"types": "./linker/babel/index.d.ts",
|
|
"default": "./bundles/linker/babel/index.js"
|
|
},
|
|
"./private/bazel": {
|
|
"types": "./private/bazel.d.ts",
|
|
"default": "./bundles/private/bazel.js"
|
|
},
|
|
"./private/localize": {
|
|
"types": "./private/localize.d.ts",
|
|
"default": "./bundles/private/localize.js"
|
|
},
|
|
"./private/migrations": {
|
|
"types": "./private/migrations.d.ts",
|
|
"default": "./bundles/private/migrations.js"
|
|
},
|
|
"./private/tooling": {
|
|
"types": "./private/tooling.d.ts",
|
|
"default": "./bundles/private/tooling.js"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "7.27.1",
|
|
"@jridgewell/sourcemap-codec": "^1.4.14",
|
|
"reflect-metadata": "^0.2.0",
|
|
"chokidar": "^4.0.0",
|
|
"convert-source-map": "^1.5.1",
|
|
"semver": "^7.0.0",
|
|
"tslib": "^2.3.0",
|
|
"yargs": "^17.2.1"
|
|
},
|
|
"peerDependencies": {
|
|
"@angular/compiler": "0.0.0-PLACEHOLDER",
|
|
"typescript": ">=5.8 <5.9"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"typescript": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@angular/compiler": "workspace:*"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/angular/angular.git",
|
|
"directory": "packages/compiler-cli"
|
|
},
|
|
"keywords": [
|
|
"angular",
|
|
"compiler"
|
|
],
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/angular/angular/issues"
|
|
},
|
|
"homepage": "https://github.com/angular/angular/tree/main/packages/compiler-cli",
|
|
"ng-update": {
|
|
"packageGroup": "NG_UPDATE_PACKAGE_GROUP"
|
|
}
|
|
}
|