[pull] main from angular:main

Merged
PU
3mo ago
+1164-847

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )


Summary by cubic

Pulls upstream angular-cli changes into main, including bug fixes, build refactors, and dependency updates.

Bug Fixes

  • Temporary package installs during ng update now write an empty yarn.lock (and a default nodeLinker: node-modules .yarnrc.yml if none exists) so Yarn modern doesn't traverse up to the parent workspace. Fixes #33972.
  • The dev-server Vite cache now uses the workspace-local cache path, so SSR prebundles in Git worktrees resolve bare imports from the worktree's node_modules instead of the main repository's. Fixes #33968.
  • Cache purging and watcher ignore lists now handle both shared and local cache paths.

Refactors

  • Replaces NoopCompilation with primary and secondary compilation contexts; secondary builds now wait on the primary compilation instead of creating a no-op compilation.
  • The i18n inliner now takes output files in inlineAll instead of at construction, allowing worker reuse across watch rebuilds.
  • @babel/core is loaded dynamically in the transformer worker only when the Babel linker is enabled.
  • Sourcemap generation in the OXC transform now uses hires: 'boundary' to reduce memory and remapping time.