René's URL Explorer Experiment


Title: fix(@angular/build): preserve unaffected localized chunk URLs by splincode · Pull Request #34673 · angular/angular-cli · GitHub

Open Graph Title: fix(@angular/build): preserve unaffected localized chunk URLs by splincode · Pull Request #34673 · angular/angular-cli

X Title: fix(@angular/build): preserve unaffected localized chunk URLs by splincode · Pull Request #34673 · angular/angular-cli

Description: PR Checklist The commit message follows the guidelines Regression tests were added to the existing i18n suites Docs were updated (no public option changes) PR Type Bugfix What is the current behavior? The application builder adds a digest of the translation files to every JavaScript bundle. Editing one locale can give unrelated chunks new URLs in every locale, forcing browsers to download them again. Fixes #30675. What is the new behavior? For one-shot browser builds with bundle hashing enabled, compute names after localization. A changed bundle gets a new URL, and bundles that reference it get updated URLs. Unchanged bundles retain their URLs. The dependency graph comes from the esbuild/Rolldown output metadata; JavaScript is parsed when references need to be rewritten or to find worker URLs that are absent from the graph. Watch, server builds, and builds with custom code plugins keep the existing hashing path. Does this PR introduce a breaking change? Yes No Measurements and verification Chromium 153, warm browser cache. Changed one French XLF message used by a lazy chunk, switched deployments on the same origin, and opened the page and one independent lazy chunk. JS used immutable cache headers; HTML used no-store. All three runs per locale and variant gave the same results. Bytes are Brotli response bodies, excluding headers. Locale JS responses (main → PR) JS bytes downloaded (main → PR) French, translation changed 5 → 2 36,822 → 34,974 (−5.0%) German, translation unchanged 5 → 0 36,596 → 0 Build time. Synthetic Angular app with 240 lazy routes, three locales and 254 JS outputs per locale. Five alternating pairs per mode, after a warm-up pair; CLI disk cache disabled. The full build compares this PR with upstream main. The rehash stage compares the metadata approach with the initial implementation that parsed JavaScript to build the graph. Source maps Full build, median paired delta vs. main (range) Rehash stage, initial implementation → metadata Off +30 ms (−128 to +308 ms) 370 → 77 ms On +138 ms (−106 to +298 ms) 404 → 124 ms The stage timings are separate instrumented runs, including graph construction. These figures describe the test fixtures, not production CDN traffic or general build performance. Validation. Ran 50 i18n tests and the localized-hashes e2e scenario locally, including sourcemap references and SHA-384 integrity for the emitted entry bundle. Checked localized workers in Chromium with esbuild and Rolldown. The initial --watch build and two rebuilds after editing a lazy TypeScript module produced identical filenames and SHA-256 digests for the entry bundle, lazy chunk and HTML on main and the PR branch. Each rebuild updated the import and removed the old chunk.

Open Graph Description: PR Checklist The commit message follows the guidelines Regression tests were added to the existing i18n suites Docs were updated (no public option changes) PR Type Bugfix What is the curren...

X Description: PR Checklist The commit message follows the guidelines Regression tests were added to the existing i18n suites Docs were updated (no public option changes) PR Type Bugfix What is the curren...

Opengraph URL: https://github.com/angular/angular-cli/pull/34673

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:1a7c09cb-41fa-f4d3-6825-0d3348255cc9
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id91B4:161320:12E29B0:1909B12:6B01EE36
html-safe-nonce7d631dccb46937ed089fecf5b4eed6b83d5395fc8620b444244179efc09ed5b0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUI0OjE2MTMyMDoxMkUyOUIwOjE5MDlCMTI6NkIwMUVFMzYiLCJ2aXNpdG9yX2lkIjoiNzczOTMxOTUxNTI1NTg4NTM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac213eecf05f98efcdbcc749d2f6045c4a46948f62268e7371afeafacc3aee97c1
hovercard-subject-tagpull_request:5210853908
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/angular/angular-cli/pull/34673/files
twitter:imagehttps://avatars.githubusercontent.com/u/12021443?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/12021443?s=400&v=4
og:image:altPR Checklist The commit message follows the guidelines Regression tests were added to the existing i18n suites Docs were updated (no public option changes) PR Type Bugfix What is the curren...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/pull/34673/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fpull%2F34673%2Ffiles
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%2Fpull%2F34673%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/pull/34673/files
Reloadhttps://github.com/angular/angular-cli/pull/34673/files
Reloadhttps://github.com/angular/angular-cli/pull/34673/files
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
Sign up for GitHub https://github.com/signup?return_to=%2Fangular%2Fangular-cli%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fangular%2Fangular-cli%2Fissues%2Fnew%2Fchoose
splincodehttps://github.com/splincode
angular:mainhttps://github.com/angular/angular-cli/tree/main
splincode:fix/i18n-stable-browser-chunk-hasheshttps://github.com/splincode/angular-cli/tree/fix/i18n-stable-browser-chunk-hashes
Conversation 6 https://github.com/angular/angular-cli/pull/34673
Commits 1 https://github.com/angular/angular-cli/pull/34673/commits
Checks 10 https://github.com/angular/angular-cli/pull/34673/checks
Files changed https://github.com/angular/angular-cli/pull/34673/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34673/files
fix(@angular/build): preserve unaffected localized chunk URLs https://github.com/angular/angular-cli/pull/34673/files#top
Show all changes 1 commit https://github.com/angular/angular-cli/pull/34673/files
bb6e7f6 fix(@angular/build): preserve unaffected localized chunk URLs splincode Nov 8, 2026 https://github.com/angular/angular-cli/pull/34673/commits/bb6e7f658ac12207674201ee9baacdb0141db31a
Clear filters https://github.com/angular/angular-cli/pull/34673/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34673/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34673/files
execute-build.ts https://github.com/angular/angular-cli/pull/34673/files#diff-725bf17eb0a0bed74c9aaca5f4c4ff2b2239a664a4baac4b29a43d961069adf7
i18n.ts https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
options.ts https://github.com/angular/angular-cli/pull/34673/files#diff-c31d390b8683db112fcc30e2ee984d893bdce6bd8e6d7d70c43ecc410a626a3d
application-code-bundle.ts https://github.com/angular/angular-cli/pull/34673/files#diff-c92828b292a980ac9ce4a0e3fc1d4ed69c93c9488d7222741b30bc653be7dde2
utils.ts https://github.com/angular/angular-cli/pull/34673/files#diff-7df1c9a8e94a4c9db79d58a2ff9dbb27bd2e14ee12c7469eba9b2432205eb425
i18n-inliner_spec.ts https://github.com/angular/angular-cli/pull/34673/files#diff-9720187e69d5fece61729f152fc25e889e6b8b11fd7ac0bbd4fca979fcf047eb
i18n-output-hashes.ts https://github.com/angular/angular-cli/pull/34673/files#diff-bb835034c41b73fa429e2d7ec398ffb913d650e4c16fd4b643618ceb9df323d1
ivy-localize-hashes.ts https://github.com/angular/angular-cli/pull/34673/files#diff-e18ee7f6e98900a0fc113975f0a912fbfc72c3bc3b716e1ed0d280306889f7cb
packages/angular/build/src/builders/application/execute-build.tshttps://github.com/angular/angular-cli/pull/34673/files#diff-725bf17eb0a0bed74c9aaca5f4c4ff2b2239a664a4baac4b29a43d961069adf7
View file https://github.com/splincode/angular-cli/blob/bb6e7f658ac12207674201ee9baacdb0141db31a/packages/angular/build/src/builders/application/execute-build.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/34673/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/34673/files#diff-725bf17eb0a0bed74c9aaca5f4c4ff2b2239a664a4baac4b29a43d961069adf7
https://github.com/angular/angular-cli/pull/34673/files#diff-725bf17eb0a0bed74c9aaca5f4c4ff2b2239a664a4baac4b29a43d961069adf7
https://github.com/angular/angular-cli/pull/34673/files#diff-725bf17eb0a0bed74c9aaca5f4c4ff2b2239a664a4baac4b29a43d961069adf7
https://github.com/angular/angular-cli/pull/34673/files#diff-725bf17eb0a0bed74c9aaca5f4c4ff2b2239a664a4baac4b29a43d961069adf7
https://github.com/angular/angular-cli/pull/34673/files#diff-725bf17eb0a0bed74c9aaca5f4c4ff2b2239a664a4baac4b29a43d961069adf7
packages/angular/build/src/builders/application/i18n.tshttps://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
View file https://github.com/splincode/angular-cli/blob/bb6e7f658ac12207674201ee9baacdb0141db31a/packages/angular/build/src/builders/application/i18n.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/34673/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
https://github.com/angular/angular-cli/pull/34673/files#diff-f1cd9baf4efc04eec39c30abbccc99986bd889220d867d90e294613c4a689afb
packages/angular/build/src/builders/application/options.tshttps://github.com/angular/angular-cli/pull/34673/files#diff-c31d390b8683db112fcc30e2ee984d893bdce6bd8e6d7d70c43ecc410a626a3d
View file https://github.com/splincode/angular-cli/blob/bb6e7f658ac12207674201ee9baacdb0141db31a/packages/angular/build/src/builders/application/options.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/34673/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/34673/files#diff-c31d390b8683db112fcc30e2ee984d893bdce6bd8e6d7d70c43ecc410a626a3d
https://github.com/angular/angular-cli/pull/34673/files#diff-c31d390b8683db112fcc30e2ee984d893bdce6bd8e6d7d70c43ecc410a626a3d
packages/angular/build/src/tools/esbuild/application-code-bundle.tshttps://github.com/angular/angular-cli/pull/34673/files#diff-c92828b292a980ac9ce4a0e3fc1d4ed69c93c9488d7222741b30bc653be7dde2
View file https://github.com/splincode/angular-cli/blob/bb6e7f658ac12207674201ee9baacdb0141db31a/packages/angular/build/src/tools/esbuild/application-code-bundle.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/34673/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/34673/files#diff-c92828b292a980ac9ce4a0e3fc1d4ed69c93c9488d7222741b30bc653be7dde2
https://github.com/angular/angular-cli/pull/34673/files#diff-c92828b292a980ac9ce4a0e3fc1d4ed69c93c9488d7222741b30bc653be7dde2
packages/angular/build/src/tools/esbuild/utils.tshttps://github.com/angular/angular-cli/pull/34673/files#diff-7df1c9a8e94a4c9db79d58a2ff9dbb27bd2e14ee12c7469eba9b2432205eb425
View file https://github.com/splincode/angular-cli/blob/bb6e7f658ac12207674201ee9baacdb0141db31a/packages/angular/build/src/tools/esbuild/utils.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/34673/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/34673/files#diff-7df1c9a8e94a4c9db79d58a2ff9dbb27bd2e14ee12c7469eba9b2432205eb425
https://github.com/angular/angular-cli/pull/34673/files#diff-7df1c9a8e94a4c9db79d58a2ff9dbb27bd2e14ee12c7469eba9b2432205eb425
https://github.com/angular/angular-cli/pull/34673/files#diff-7df1c9a8e94a4c9db79d58a2ff9dbb27bd2e14ee12c7469eba9b2432205eb425
https://github.com/angular/angular-cli/pull/34673/files#diff-7df1c9a8e94a4c9db79d58a2ff9dbb27bd2e14ee12c7469eba9b2432205eb425
packages/angular/build/src/tools/i18n/i18n-inliner_spec.tshttps://github.com/angular/angular-cli/pull/34673/files#diff-9720187e69d5fece61729f152fc25e889e6b8b11fd7ac0bbd4fca979fcf047eb
View file https://github.com/splincode/angular-cli/blob/bb6e7f658ac12207674201ee9baacdb0141db31a/packages/angular/build/src/tools/i18n/i18n-inliner_spec.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/angular/angular-cli/pull/34673/{{ revealButtonHref }}
https://github.com/angular/angular-cli/pull/34673/files#diff-9720187e69d5fece61729f152fc25e889e6b8b11fd7ac0bbd4fca979fcf047eb
https://github.com/angular/angular-cli/pull/34673/files#diff-9720187e69d5fece61729f152fc25e889e6b8b11fd7ac0bbd4fca979fcf047eb
https://github.com/angular/angular-cli/pull/34673/files#diff-9720187e69d5fece61729f152fc25e889e6b8b11fd7ac0bbd4fca979fcf047eb
https://github.com/angular/angular-cli/pull/34673/files#diff-9720187e69d5fece61729f152fc25e889e6b8b11fd7ac0bbd4fca979fcf047eb
Please reload this pagehttps://github.com/angular/angular-cli/pull/34673/files
Please reload this pagehttps://github.com/angular/angular-cli/pull/34673/files
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

Viewport: width=device-width


URLs of crawlers that visited me.