-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Command
build
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
It's possible to create a situation, when with enabled NG_BUILD_OPTIMIZE_CHUNKS=1
command npm run build
, after running the second time, generates a different files with the same hash in the name
This may cause problems with cache
It looks like a new hash always must be added to every file on rollup step, even if a hash from esbuild is already present
link to the source code
Minimal Reproduction
https://stackblitz.com/github/ihsnow/chunk-names
Exception or Error
No response
Your Environment
Angular CLI: 18.2.7
Node: 20.15.0
Package Manager: npm 10.8.1
OS: darwin arm64
Angular: 18.2.7
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1802.7
@angular-devkit/build-angular 18.2.7
@angular-devkit/core 18.2.7
@angular-devkit/schematics 18.2.7
@schematics/angular 18.2.7
rxjs 7.8.1
typescript 5.5.4
zone.js 0.14.10
Anything else relevant?
No response