Packages

@angular-devkit/build-angular

22.2.5 · 28 Oct 2026MIT2.8M / weekRepositorynpmAtom feed

Deprecated by its maintainers: Angular's Webpack support is deprecated. Use the esbuild and Vite-based "@angular/build" package instead.What to use instead
Your version

13.0.0

major3 Nov 2021Where it was published

13.3.11 is the newest release of 13.x.

In short

13 breaking1 deprecated

  • breaking

    Support for karma-coverage-instanbul-reporter has been dropped in favor of the official karma coverage plugin karma-coverage.

  • breaking

    Support for node-sass has been removed. sass will be used by default to compile SASS and SCSS files.

  • breaking

    NG_PERSISTENT_BUILD_CACHE environment variable option no longer have effect. Configure cli.cache in the workspace configuration instead.

  • breaking

    The automatic inclusion of Angular-required ES2015 polyfills to support ES5 browsers has been removed. Previously when targetting ES5 within the application's TypeScript configuration or listing an ES5 requiring browser in the browserslist file, Angular-required polyfills were included in the built application. However, with Angular no longer supporting IE11, there are now no browsers officially supported by Angular that would require these polyfills. As a result, the automatic inclusion of these ES2015 polyfills has been removed. Any polyfills manually added to an application's code are not affected by this change.

  • breaking

    With this change a number of deprecated dev-server builder options which proxied to the browser builder have been removed. These options should be configured in the browser builder instead.

  • breaking

    With this change we removed several deprecated builder options

  • breaking

    extractCss has been removed from the browser builder. CSS is now always extracted.

  • breaking

    servePathDefaultWarning and hmrWarning have been removed from the dev-server builder. These options had no effect.

Release note

The section about @angular-devkit/build-angular of a note shared by several packages.

Breaking Changes

@angular-devkit/build-angular

  • breaking

    Support for karma-coverage-instanbul-reporter has been dropped in favor of the official karma coverage plugin karma-coverage.

  • breaking

    Support for node-sass has been removed. sass will be used by default to compile SASS and SCSS files.

  • breaking

    NG_PERSISTENT_BUILD_CACHE environment variable option no longer have effect. Configure cli.cache in the workspace configuration instead.

{
  "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
  "version": 1,
  "cli": {
    "cache": {
      "enabled": true,
      "path": ".custom-cache-path",
      "environment": "all"
    }
  }
  ...
}
  • breaking

    The automatic inclusion of Angular-required ES2015 polyfills to support ES5 browsers has been removed. Previously when targetting ES5 within the application's TypeScript configuration or listing an ES5 requiring browser in the browserslist file, Angular-required polyfills were included in the built application. However, with Angular no longer supporting IE11, there are now no browsers officially supported by Angular that would require these polyfills. As a result, the automatic inclusion of these ES2015 polyfills has been removed. Any polyfills manually added to an application's code are not affected by this change.

  • breaking

    With this change a number of deprecated dev-server builder options which proxied to the browser builder have been removed. These options should be configured in the browser builder instead.

    The removed options are:

    • aot

    • sourceMap

    • deployUrl

    • baseHref

    • vendorChunk

    • commonChunk

    • optimization

    • progress

  • breaking

    With this change we removed several deprecated builder options

  • breaking

    extractCss has been removed from the browser builder. CSS is now always extracted.

  • breaking

    servePathDefaultWarning and hmrWarning have been removed from the dev-server builder. These options had no effect.

  • breaking

    Deprecated @angular-devkit/build-angular:tslint builder has been removed. Use github.com/angular-eslint/angular-eslint instead.

  • breaking

    Differential loading support has been removed. With Angular no longer supporting IE11, there are now no browsers officially supported by Angular that require ES5 code. As a result, differential loading's functionality for creating and conditionally loading ES5 and ES2015+ variants of an application is no longer required.

  • breaking

    TypeScript versions prior to 4.4 are no longer supported.

  • breaking

    The dev-server now uses WebSockets to communicate changes to the browser during HMR and live-reloaded. If during your development you are using a proxy you will need to enable proxying of WebSockets.

  • breaking

    We remove inlining of Google fonts in WOFF format since IE 11 is no longer supported. Other supported browsers use WOFF2.

Deprecations

@angular-devkit/build-angular

  • deprecated

    NG_BUILD_CACHE environment variable option will be removed in the next major version. Configure cli.cache in the workspace configuration instead.

@angular-devkit/build-angular

CommitDescription
feat - f53bf9dc2add type=module to all scripts tags
feat - e95ecb8abdeprecate deployUrl
feat - 7dcfffaffdrop support for karma-coverage-instanbul-reporter
feat - ac3fc2752drop support for node-sass
feat - 5904afd1denable disk cache by default and provide configurable options
feat - 22cd9edfafavor es2020 main fields
feat - 7576136b2remove automatic inclusion of ES5 browser polyfills
feat - 000b0e51cremove deprecated dev-server options
feat - 20e48a33cremove deprecated options
feat - e78f6ab5dremove deprecated tslint builder
feat - 701214d17remove differential loading support
feat - fb1ad7c5bsupport ESM proxy configuration files for the dev server
feat - 505438cc4support TypeScript 4.4
feat - 32dbf659aupdate webpack-dev-server to version 4
fix - c1efaa17fcalculate valid Angular versions from peerDependencies
fix - d7af4a7b5enable custom es2020 and es2015 conditional exports
fix - f383f3201ESM-interop loaded plugin creators of @angular/localize/tools not respected
fix - 7934becb5generate unique webpack runtimes
fix - b14e0a547improve sourcemaps fidelity when code coverage is enabled
fix - e19287453move @angular/localize detection prior to webpack initialization
fix - 76d6d8826set browserslist defaults
fix - 167eed465update Angular peer dependencies to v13.0 prerelease
fix - 1d8cdf853update esbuild to 0.13.12
fix - 884111ac0update IE unsupported and deprecation messages
fix - 4be6537ddupdate TS/JS regexp checks to latest extensions
fix - 427a9ee97update workspace tsconfig lib es2020
fix - ea926db25use es2015 when generating server bundles
fix - 13cceab8euse URLs for absolute import paths with ESM
perf - 4e0743c8achange webpack hashing function to xxhash64
perf - cb7d156c2use esbuild as a CSS optimizer for global styles
perf - 8e82263c5use esbuild/terser combination to optimize global scripts
refactor - e82eef924remove WOFF handling from inline-fonts processor