Security News
JavaScript Leaders Demand Oracle Release the JavaScript Trademark
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
@angular/compiler-cli
Advanced tools
The @angular/compiler-cli package provides command-line interfaces to perform Angular compilations. It is primarily used to compile Angular applications into JavaScript code that can be executed by browsers. It leverages the Angular Compiler (ngc) which is a superset of the TypeScript compiler (tsc) and includes Angular-specific metadata processing.
Ahead-of-Time (AOT) Compilation
Compiles Angular HTML and TypeScript code into efficient JavaScript code during the build process before the browser downloads and runs that code. This is the main feature of the compiler-cli which results in faster rendering, fewer asynchronous requests, smaller Angular framework download size, and better security.
ngc -p tsconfig.app.json
Incremental Builds
Supports incremental compilation by reusing the previous compilation results to speed up subsequent compilations. This feature is useful for large projects to reduce build times.
ngc --incremental
Link Time Code Generation
Processes libraries to generate Ivy-compatible code as part of the Angular Ivy compilation pipeline. This feature is used when compiling libraries with the Ivy renderer.
ngc --create-ivy-entry-points
The TypeScript compiler is similar to @angular/compiler-cli in that it compiles TypeScript code to JavaScript. However, it does not have Angular-specific metadata processing capabilities and is not tailored for Angular applications.
Babel is a JavaScript compiler that can transform syntax, polyfill features that are missing in your target environment, and more. While it is not specific to Angular, it is often used in the JavaScript ecosystem for compiling next-generation JavaScript code down to a form that can be executed in current browsers.
Webpack is a module bundler that can also perform various optimizations and transformations on your code, including compiling TypeScript with the appropriate loader. It is more general-purpose compared to @angular/compiler-cli and is used in a wide variety of JavaScript applications, not just Angular.
18.2.0-next.1 (2024-07-17)
| Commit | Type | Description | | -- | -- | -- | | 2c4613a002 | fix | Don't run preconnect assertion on the server. (#56213) |
| Commit | Type | Description | | -- | -- | -- | | 9167fc815c | fix | JIT mode incorrectly interpreting host directive configuration in partial compilation (#57002) | | 107173c14d | fix | use strict equality for 'code' comparison (#56944) |
| Commit | Type | Description |
| -- | -- | -- |
| 98ed5b609e | feat | run JIT transform on classes with jit: true
opt-out (#56892) |
| f0d6d0688d | fix | avoid emitting references to typecheck files in TS 5.4 (#56961) |
| Commit | Type | Description | | -- | -- | -- | | e504ad97d4 | fix | not all callbacks running when registered at the same time (#56981) |
| Commit | Type | Description | | -- | -- | -- | | 4bb558ab0c | feat | support writing code refactorings (#56895) | | 7663debce1 | perf | quick exit if no code fixes can exist (#57000) |
| Commit | Type | Description | | -- | -- | -- | | 0ea6a4a361 | fix | fix common module removal (#56968) |
<!-- CHANGELOG SPLIT MARKER --><a name="18.1.1"></a>
FAQs
Angular - the compiler CLI for Node.js
The npm package @angular/compiler-cli receives a total of 2,376,794 weekly downloads. As such, @angular/compiler-cli popularity was classified as popular.
We found that @angular/compiler-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
In an open letter, JavaScript community leaders urge Oracle to give up the JavaScript trademark, arguing that it has been effectively abandoned through nonuse.
Security News
The initial version of the Socket Python SDK is now on PyPI, enabling developers to more easily interact with the Socket REST API in Python projects.
Security News
Floating dependency ranges in npm can introduce instability and security risks into your project by allowing unverified or incompatible versions to be installed automatically, leading to unpredictable behavior and potential conflicts.