René's URL Explorer Experiment


Title: augmentChunkHash hashes only input source maps, so an output-map change keeps a lazy chunk name while its debugId (and bytes) change · Issue #34774 · angular/angular-cli · GitHub

Open Graph Title: augmentChunkHash hashes only input source maps, so an output-map change keeps a lazy chunk name while its debugId (and bytes) change · Issue #34774 · angular/angular-cli

X Title: augmentChunkHash hashes only input source maps, so an output-map change keeps a lazy chunk name while its debugId (and bytes) change · Issue #34774 · angular/angular-cli

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 The same gap exists since #34583, but it shows up on a toolchain update: 22.2.6 → 22.3...

Open Graph 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 The same gap exists since #34583, but it shows...

X 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 The same gap exists since #34583, but it shows...

Opengraph URL: https://github.com/angular/angular-cli/issues/34774

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"augmentChunkHash hashes only input source maps, so an output-map change keeps a lazy chunk name while its debugId (and bytes) change","articleBody":"### Command\n\nbuild\n\n### Is this a regression?\n\n- [x] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\nThe same gap exists since #34583, but it shows up on a toolchain update: 22.2.6 → 22.3.0.\n\n### Description\n\n#34583 made the chunk optimizer's `augmentChunkHash` include the hashes of the *input* source maps of a chunk's modules, so that a change that only affects the source map renames the chunk (#34574). The `//# debugId=` comment injected after naming is derived from the *output* source map, though, and the output map can change while every input map stays the same.\n\nUpdating `@angular/build` from 22.2.6 to 22.3.0 does exactly that for vendor-only lazy chunks. In our production build, two lazy chunks that hold only third-party code (SheetJS and jsPDF, loaded with `import()`) kept their file names, and their JavaScript was byte-for-byte identical apart from the trailing comment:\n\n```\n-//# debugId=e8aee844-1ba7-543c-be31-811b9fc51bb2\n+//# debugId=fb140939-ab0f-576a-a399-540d2ee6737b\n```\n\nIn the chunks' `.map` files, `sources` and `sourcesContent` are identical; only `names` and `mappings` differ (the newer minifier maps the same output differently). The input maps are unchanged, so `augmentChunkHash` returns the same value, Rolldown's code hash is the same, and the file name is the same while the bytes differ.\n\nWith `subresourceIntegrity` on, a browser or CDN that holds the old copy under that name fails the integrity check against the new `index.html`, and the lazy import fails. The same applies to any update that changes only how the output is mapped (minifier, Rolldown, or the debug ID computation), so every toolchain bump can reintroduce it.\n\nRelated: #34674 reports the same symptom for `main` and `polyfills`, and proposes naming files from their final bytes after debug IDs are injected. That approach would also cover this case; hashing the output map (or the final file contents) in `augmentChunkHash` would cover it for optimized lazy chunks.\n\n### Minimal Reproduction\n\n1. An application with source maps on for scripts, `subresourceIntegrity: true`, and enough lazy chunks for the chunk optimizer to run (3 or more), including at least one lazy chunk that holds only a third-party library loaded with `import('\u003cpackage>')`.\n2. Build with `@angular/build` 22.2.6 and keep `dist/`.\n3. Update `@angular/build` and `@angular/cli` to 22.3.0 without changing application code, and build again.\n4. Compare the two `dist/` folders: list files that exist in both with the same name and different contents. The vendor-only lazy chunk is among them, and `diff` shows only the `//# debugId=` line changed.\n\n### Exception or Error\n\n```text\nFailed to find a valid digest in the 'integrity' attribute for resource '\u003corigin>/chunk-XXXXXXXX.js' with computed SHA-384 integrity '...'. The resource has been blocked.\n```\n\n### Your Environment\n\n```text\nAngular CLI       : 22.3.0\n@angular/build    : 22.3.0 (previous build: 22.2.6)\n@angular/core     : 22.3.0\nTypeScript        : 6.0.3\nNode.js           : 24.22.1\nPackage manager   : npm 11.19\nOS                : macOS and Linux (CI)\n\nBuild options: `sourceMap: true`, `subresourceIntegrity: true`, `outputHashing: all`, production configuration.\n\nBuild options: sourceMap: true, subresourceIntegrity: true, outputHashing: all, production configuration.\n```\n\n### Anything else relevant?\n\n(The error above is the shape of the browser error when a stale cached copy is served; our CI caught the name collision before deploy, so we did not ship it.)\n\nWorkaround we used: change what the app imports from each library (a local module that re-exports only the used members), which changes the rendered chunk code and so its name. `namedChunks: true` only changes the readable prefix; the `[hash]` part is computed the same way, so it does not prevent this.","author":{"url":"https://github.com/ddehaangfs","@type":"Person","name":"ddehaangfs"},"datePublished":"2026-11-22T14:19:19Z","url":"https://github.com/angular/angular-cli/issues/34774"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e76776b4-629d-e0f1-b507-fa89f98c99dd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC44A:C802B:32F989:44D260:6B061A2A
html-safe-nonce15cfbffef3c89ccadf6393f3e92170451d531de6892e02472b215b3c3b4c0a1b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDRBOkM4MDJCOjMyRjk4OTo0NEQyNjA6NkIwNjFBMkEiLCJ2aXNpdG9yX2lkIjoiNjMwMzMxMTc1MjIxMDAyOTA5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac03b969c7c4030b38dab8a6b76da18279fadec594b4b87b5ae78c1f1b8e8499e0
hovercard-subject-tagissue:6543455006
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/34774/issue_layout
twitter:imagehttps://opengraph.githubassets.com/94f78f1179762d0016cf6fcec304c18f7b7669fddede04c4b42e5da1c589b303/angular/angular-cli/issues/34774
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/94f78f1179762d0016cf6fcec304c18f7b7669fddede04c4b42e5da1c589b303/angular/angular-cli/issues/34774
og:image:altCommand 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 The same gap exists since #34583, but it shows...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameddehaangfs
hostnamegithub.com
expected-hostnamegithub.com
None97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release866f202ebf7ac5aff8f633417d9fd8a53818a977
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/34774#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F34774
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F34774
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/34774
Reloadhttps://github.com/angular/angular-cli/issues/34774
Reloadhttps://github.com/angular/angular-cli/issues/34774
angularhttps://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Codehttps://github.com/angular/angular-cli
Issues198 (198)https://github.com/angular/angular-cli/issues
Pull requests23 (23)https://github.com/angular/angular-cli/pulls
Actionshttps://github.com/angular/angular-cli/actions
Security and quality8 (8)https://github.com/angular/angular-cli/security
Insightshttps://github.com/angular/angular-cli/insights
https://github.com/angular/angular-cli
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/34774
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/34774
augmentChunkHash hashes only input source maps, so an output-map change keeps a lazy chunk name while its debugId (and bytes) changehttps://github.com/angular/angular-cli/issues/34774#top
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
needsTriagehttps://github.com/angular/angular-cli/milestone/11
https://github.com/ddehaangfs
ddehaangfshttps://github.com/ddehaangfs
on Nov 22, 2026https://github.com/angular/angular-cli/issues/34774#issue-6543455006
#34583https://github.com/angular/angular-cli/pull/34583
#34583https://github.com/angular/angular-cli/pull/34583
#34574https://github.com/angular/angular-cli/issues/34574
#34674https://github.com/angular/angular-cli/issues/34674
angular-robothttps://github.com/apps/angular-robot
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
on Nov 22, 2026https://github.com/angular/angular-cli/issues/34774#event-36927773445
angular-robothttps://github.com/apps/angular-robot
needsTriagehttps://github.com/angular/angular-cli/milestone/11
on Nov 22, 2026https://github.com/angular/angular-cli/issues/34774#event-36927775336
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular-cli/issues/34774
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/34774
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
needsTriageNo due datehttps://github.com/angular/angular-cli/milestone/11
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.