Change8

21.4.0

Breaking Changes
📦 nxView on GitHub →
6 breaking55 features🐛 1 fixes🔧 5 symbols

Summary

This release introduces the new angular-rspack builder with extensive feature parity for Angular builds, alongside core improvements like Bun parser support and better TUI diagnostics. Several configuration options have been renamed for clarity, and Stylus support has been removed.

⚠️ Breaking Changes

  • Stylus support has been removed from bundling configurations. Users relying on Stylus must migrate to another supported preprocessor (e.g., Sass, Less, CSS Modules).
  • The configuration option `jit` has been renamed to `aot` in `angular-rspack` and `angular-rsbuild`.
  • The configuration option `tsconfigPath` has been renamed to `tsConfig` in `angular-rspack` and `angular-rsbuild`.
  • The configuration option `inlineStylesExtension` has been renamed to `inlineStyleLanguage` in `angular-rspack` and `angular-rsbuild`.
  • The configuration option `ssrEntry` has been renamed to `ssr.entry` in `angular-rspack` and `angular-rsbuild`.
  • The root property was removed from the public API in `angular-rspack` and `angular-rsbuild`.

Migration Steps

  1. If you were using Stylus, migrate your configuration to use a different supported preprocessor.
  2. Update configurations referencing `jit` to use `aot` instead.
  3. Update configurations referencing `tsconfigPath` to use `tsConfig` instead.
  4. Update configurations referencing `inlineStylesExtension` to use `inlineStyleLanguage` instead.
  5. Update configurations referencing `ssrEntry` to use `ssr.entry` instead.
  6. Review any code that relied on the root property being present in the public API of `angular-rspack` or `angular-rsbuild` and remove those references.

✨ New Features

  • Added new `angular-` packages and created corresponding legacy packages.
  • Updated Angular support to NGRX v20.
  • Introduced `angular-rspack` package to the Nx repository.
  • Added `withConfigurations` (now `createConfig`) API to `angular-rspack`.
  • Added support for expanded syntax for `assets`, `styles`, and `scripts` in `angular-rspack`.
  • Added `extractLicenses` option to `angular-rspack`.
  • Improved public API for `createConfig` in `angular-rspack`.
  • Added support for `host` option for the Angular dev server in `angular-rspack`.
  • Added `allowedHosts` option to `angular-rspack`.
  • Added i18n support to `angular-rspack`.
  • Added service-worker support to `angular-rspack`.
  • Improved entry files handling and index.html generation in `angular-rspack`.
  • Used development config for serve operations in `angular-rspack`.
  • Added support for static site generation in `angular-rspack`.
  • Improved styles processing and added support for Tailwind CSS v4 in `angular-rspack`.
  • Added support for more `devServer` options in `angular-rspack`.
  • Added HMR support to `angular-rspack`.
  • Added `statsJson` plugin to `angular-rspack`.
  • Added `poll` option to `angular-rspack`.
  • Added `verbose` option to `angular-rspack`.
  • Added `progress` option to `angular-rspack`.
  • Added `watch` option to `angular-rspack`.
  • Added `open` option to `angular-rspack`.
  • Finalized `devServer` options in `angular-rspack`.
  • Added granular optimization support to `angular-rspack`.
  • Added `budgets` support to `angular-rspack`.
  • Added `appShell` option to `angular-rspack`.
  • Added support for index transformer in `angular-rspack`.
  • Included JS-based PostCSS config in `angular-rspack`.
  • Added support for package scheme importer in `angular-rspack`.
  • Added "zoneless" option to enable Angular's `provideZonelessChangeDetection()` usage.
  • Renamed `jit` to `aot`, `tsconfigPath` to `tsConfig`, and `inlineStylesExtension` to `inlineStyleLanguage` across `angular-rspack` and `angular-rsbuild`.
  • Added support for web workers in `angular-rspack` and `angular-rsbuild`.
  • Refactored `withConfigurations` to `createConfig` in `angular-rspack` and `angular-rsbuild`.
  • Added support for passing `devServer` options in `angular-rspack` and `angular-rsbuild`.
  • Added `optimization` option in `angular-rspack` and `angular-rsbuild`.
  • Renamed `ssrEntry` to `ssr.entry` in `angular-rspack` and `angular-rsbuild`.
  • Added `outputHashing` option in `angular-rspack` and `angular-rsbuild`.
  • Added support for `ssl`, `sslKey`, `sslCert`, and `proxyConfig` options in `angular-rspack` and `angular-rsbuild`.
  • Enabled/disabled advanced optimizations based on provided options in `angular-rspack` and `angular-rsbuild`.
  • Added `outputPath` option in `angular-rspack` and `angular-rsbuild`.
  • Added `sourcemap` option in `angular-rspack` and `angular-rsbuild`.
  • Added chunking options in `angular-rspack` and `angular-rsbuild`.
  • Added `root` option and improved `tsConfig` handling in `angular-rspack` and `angular-rsbuild`.
  • Added `define` option in `angular-rspack` and `angular-rsbuild`.
  • Added `preserveSymlinks` option in `angular-rspack` and `angular-rsbuild`.
  • Added `deleteOutputPath` option in `angular-rspack` and `angular-rsbuild`.
  • Added `externalDependencies` option in `angular-rspack` and `angular-rsbuild`.
  • Reused existing compilation if available in `angular-rspack` and `angular-rspack-compiler`.
  • Added support for Angular 20 in `angular-rspack` and `angular-rspack-compiler`.
  • Updated Angular support to angular 20.1.0 in `angular-rspack` and `angular-rspack-compiler`.
  • Added `tsBuildInfoFile` option to all packages' `tsconfig.lib.json` configurations.
  • Logged out-of-sync details returned by sync generators when running `nx sync:check`.
  • Displayed estimated task durations in the TUI terminal pane when available.
  • Added Bun parser support for configuration files.

🐛 Bug Fixes

  • Fixed calculation of dependency view area in the TUI to prevent crashes.

🔧 Affected Symbols

angular-rspackangular-rsbuildangular-rspack-compilernx sync:checktsconfig.lib.json