Packages

@ngtools/webpack

22.2.5 · 28 Oct 2026MIT3.7M / 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

18.0.0

major22 May 2024Where it was published

18.2.21 is the newest release of 18.x.

In short

4 breaking1 deprecated

  • breaking

    The ng doc command has been removed without a replacement. To perform searches, please visit angular.dev

  • breaking

    Node.js support for versions <18.19.1 and <20.11.1 has been removed.

  • breaking

    By default, the index.html file is no longer emitted in the browser directory when using the application builder with SSR. Instead, an index.csr.html file is emitted. This change is implemented because in many cases server and cloud providers incorrectly treat the index.html file as a statically generated page. If you still require the old behavior, you can use the index option to specify the output file name.

  • breaking

    The support for the legacy Sass build pipeline, previously accessible via NG_BUILD_LEGACY_SASS when utilizing webpack-based builders, has been removed.

  • deprecated

    NodePackageLinkTask in @angular-devkit/schematics. A custom task should be created instead.

Release note

@schematics/angular

CommitDescription
feat - b2ac5fac7allow application migration to use new build package in projects where possible
feat - 6530aa11breplace assets with public directory
feat - 725883713use eventCoalescing option by default (standalone bootstrap)
feat - 508d97da7use ngZoneEventCoalescing option by default (module bootstrap)
feat - f452589e2use TypeScript bundler module resolution for new projects
fix - 95a4d6ee5add less dependency in application migration if needed
fix - c46aa084fadd postcss dependency in application migration if needed
fix - 157329384add spaces around eventCoalescing option
fix - 23cc337aakeep deployUrl option when migrating to application builder

@angular/cli

CommitDescription
feat - ac3019570add ng dev alias to ng serve
feat - 4087728c3support for Node.js v22
fix - 41ab6c8c3add --version option
fix - df4dde95dadd @angular/build package to update group list
fix - 1039f6d79change update guide link to angular.dev
fix - f4670fcb1eliminate prompts during ng version command
fix - a99ec6a54keep cli package first in update package group metadata
fix - dd786d495only add --version option on default command
refactor - 03eee0545remove ng doc command
refactor - c7b208555remove support for Node.js versions <18.19.1 and <20.11.1

@angular-devkit/architect

CommitDescription
fix - ddd08efefresolve builder aliases from containing package

@angular-devkit/build-angular

CommitDescription
feat - 53c319aaaadd support for the poll option in the library builder
feat - 83d1d233aenhance Sass rebasing importer for resources URL defined in variables and handling of external paths
feat - d51cb598ainject event-dispatch in SSR HTML page
feat - 0b03829bcmove i18n extraction for application builder to new build system package
feat - 4ffe07aa2move Vite-based dev-server for application builder to new build system package
feat - d1c632af9support native async/await when app is zoneless
fix - 37fc7f0ccdisable Vite prebundling when script optimizations are enabled
fix - 2acf95a94do not generate an index.html file in the browser directory when using SSR.
fix - 8a54875cbhandle wrapping of class expressions emitted by esbuild
refactor - 97973059eremove Sass legacy implementation

@angular-devkit/schematics

CommitDescription
refactor - 797584583deprecate NodePackageLinkTask

@angular/build

CommitDescription
feat - 810d213e1introduce new official build system package
fix - b7a0792b3add a maximum rendering timeout for SSG
fix - 411115303add console note about development server raw file size
fix - 921fa7cf4add missing ansi-colors and picomatch dependencies
fix - 791cf75afcheck both potential build packages in Angular version check
fix - 4d7cd5e3ecorrectly wrap class expressions with static properties or blocks emitted by esbuild
fix - 57f448a0fdecode URL pathname decoding during SSG fetch
fix - 940e382dbdisable Vite prebundling when script optimizations are enabled
fix - 70dbc7a6eemit error for invalid self-closing element in index HTML
fix - 44b401747ensure input index HTML file triggers rebuilds when changed
fix - dff4deaebensure recreated files are watched
fix - 17931166dformat sizes using decimal byte units consistently
fix - 2085365e0only generate shallow preload links for initial files
fix - 33cd47c85properly configure headers for media resources and HTML page
fix - d10fece2cproperly rebase Sass url() values with leading interpolations
perf - 3f2963835add persistent caching of JavaScript transformations
perf - a15eb7d1cimprove rebuild time for file loader usage with prebundling

Breaking Changes

@angular/cli

  • breaking

    The ng doc command has been removed without a replacement. To perform searches, please visit angular.dev

  • breaking

    Node.js support for versions <18.19.1 and <20.11.1 has been removed.

@angular-devkit/build-angular

  • breaking

    By default, the index.html file is no longer emitted in the browser directory when using the application builder with SSR. Instead, an index.csr.html file is emitted. This change is implemented because in many cases server and cloud providers incorrectly treat the index.html file as a statically generated page. If you still require the old behavior, you can use the index option to specify the output file name.

    "architect": {
      "build": {
        "builder": "@angular-devkit/build-angular:application",
        "options": {
          "outputPath": "dist/my-app",
          "index": {
            "input": "src/index.html",
            "output": "index.html"
          }
        }
      }
    }
  • breaking

    The support for the legacy Sass build pipeline, previously accessible via NG_BUILD_LEGACY_SASS when utilizing webpack-based builders, has been removed.

Deprecations

@angular-devkit/schematics