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

13.0.0

major3 Nov 2021Where it was published

13.3.11 is the newest release of 13.x.

In short

1 breaking1 deprecated

  • breaking

    Applications directly using the webpack-cli and not the Angular CLI to build must set the environment variable DISABLE_V8_COMPILE_CACHE=1. The @ngtools/webpack package now uses dynamic imports to provide support for the ESM @angular/compiler-cli package. The v8-compile-cache package used by the webpack-cli does not currently support dynamic import expressions and will cause builds to fail if the environment variable is not specified. Applications using the Angular CLI are not affected by this limitation.

  • deprecated

    Deprecated inlineStyleMimeType option has been removed from AngularWebpackPluginOptions. Use inlineStyleFileExtension instead.

Release note

The section about @ngtools/webpack of a note shared by several packages.

Breaking Changes

@ngtools/webpack

  • deprecated

    Deprecated inlineStyleMimeType option has been removed from AngularWebpackPluginOptions. Use inlineStyleFileExtension instead.

  • breaking

    Applications directly using the webpack-cli and not the Angular CLI to build must set the environment variable DISABLE_V8_COMPILE_CACHE=1. The @ngtools/webpack package now uses dynamic imports to provide support for the ESM @angular/compiler-cli package. The v8-compile-cache package used by the webpack-cli does not currently support dynamic import expressions and will cause builds to fail if the environment variable is not specified. Applications using the Angular CLI are not affected by this limitation.

Deprecations

@ngtools/webpack

CommitDescription
fix - d2a97f919update Angular peer dependencies to v13.0 prerelease
perf - 7928b18edreduce repeat path mapping analysis during resolution
refactor - 8ce8e4edcremove deprecated inlineStyleMimeType option
refactor - 7d98ab3dfsupport an ESM-only @angular/compiler-cli package