mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 04:26:01 +08:00
When using the development server with the esbuild-based browser application builder, the underlying Vite server will now prebundle packages present in an application. During the prebundling process, the Angular linker will also be invoked to ensure that APF packages are processed for AOT usage. The Vite prebundling also provides automatic persistent caching of processed packages. This allows reuse of processed packages across `ng serve` invocations. To support the use of prebundling at the development server level, all packages are considered external from the build level. The first time a package is used within an application there may be a short delay upon accessing the page as the package is processed. Due to the persistent nature of the prebundling, the `ng cache` command is used to control the use of the feature. Please note, however, disabling the cache will also disable TypeScript incremental compilation if not otherwise specifically disabled.
@angular-devkit/build-angular
This package contains Architect builders used to build and test Angular applications and libraries.
Builders
Name | Description |
---|---|
app-shell | Build an Angular App shell. |
browser | Build an Angular application targeting a browser environment. |
dev-server | A development server that provides live reloading. |
extract-i18n | Extract i18n messages from an Angular application. |
karma | Execute unit tests using Karma test runner. |
ng-packagr | Build and package an Angular library in Angular Package Format (APF) format using ng-packagr. |
server | Build an Angular application targeting a Node.js environment. |
protractor | Deprecated - Run end-to-end tests using Protractor framework. |
Disclaimer
While the builders when executed via the Angular CLI and their associated options are considered stable, the programmatic APIs are not considered officially supported and are not subject to the breaking change guarantees of SemVer.