Title: Emit ECMA-426 source map debug IDs for stable subresource integrity · Issue #33108 · angular/angular-cli · GitHub
Open Graph Title: Emit ECMA-426 source map debug IDs for stable subresource integrity · Issue #33108 · angular/angular-cli
X Title: Emit ECMA-426 source map debug IDs for stable subresource integrity · Issue #33108 · angular/angular-cli
Description: Command build Description We are trying to implement Subresource Integrity checks while continuing to be able to track errors in our app reliably. Error tracking tools, such as Sentry, have started to rely on Debug IDs to reliably associ...
Open Graph Description: Command build Description We are trying to implement Subresource Integrity checks while continuing to be able to track errors in our app reliably. Error tracking tools, such as Sentry, have started...
X Description: Command build Description We are trying to implement Subresource Integrity checks while continuing to be able to track errors in our app reliably. Error tracking tools, such as Sentry, have started...
Opengraph URL: https://github.com/angular/angular-cli/issues/33108
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Emit ECMA-426 source map debug IDs for stable subresource integrity","articleBody":"### Command\n\nbuild\n\n### Description\n\nWe are trying to implement Subresource Integrity checks while continuing to be able to track errors in our app reliably.\n\nError tracking tools, such as Sentry, have started to rely on Debug IDs to reliably associate source files with source maps.\n\nThe de-facto suggestion from those tools is to run a script to injecting the Debug IDs into the generated files and altering them after they have been built by e.g. Angular:\n```\nsentry-cli sourcemaps inject\n```\n[Sentry Docs](https://docs.sentry.io/platforms/javascript/sourcemaps/uploading/cli/#3-inject-debug-ids-into-artifacts)\n\nHowever, altering the files breaks the integrity hashes of those files rendering the `--sri` option in the Angular unusable.\n\nRelated EMCA proposal: https://github.com/tc39/ecma426/blob/main/proposals/debug-id.md#debug-ids (Stage 2 as of 30th April, 2026)\nSentry documentation: https://docs.sentry.io/platforms/javascript/sourcemaps/troubleshooting_js/debug-ids/\n\n### Describe the solution you'd like\n\nInject Debug IDs in a post-processing step after the output files and source maps have been generated and before the SRI hashes are generated by Angular.\n\n### Describe alternatives you've considered\n\n- Write a custom post-processing script implementing the calculation of subresource integrity hashes manually outside of the Angular build process.\n - → While this may work it's an annoying manual step that should automatically be done by Angular\n\n- Let esbuild emit the Debug IDs in the source maps already.\n - → This is probably the cleanest solution 👀 Though requires the buy in from yet another team to adopt a stage 2 proposal and may delay until this natively lands in Angular 🥲\n - → The implementation of a post-processing step would be ~150 lines of code + some for tests.","author":{"url":"https://github.com/IchordeDionysos","@type":"Person","name":"IchordeDionysos"},"datePublished":"2026-04-30T12:00:01Z","url":"https://github.com/angular/angular-cli/issues/33108"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4ac09667-78ae-3fd6-b080-fda41582107b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86C8:AFBD9:1133336:16C1AC5:6B01E465 |
| html-safe-nonce | a5c767ae180004f192860b8abdb4937316c8772edc67c19eb7af7f95ec15050d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkM4OkFGQkQ5OjExMzMzMzY6MTZDMUFDNTo2QjAxRTQ2NSIsInZpc2l0b3JfaWQiOiI3NDI2NzgzNzU2OTg5NjIxMzQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b132f03ed02d556bf8772cc38754e96e1c3f080f91820d919394c6ed5a895e51 |
| hovercard-subject-tag | issue:4357890161 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/33108/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ad1879c0dfe2b990da303325bd2f1d410604aec599652a2ca089578c7124a3e/angular/angular-cli/issues/33108 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ad1879c0dfe2b990da303325bd2f1d410604aec599652a2ca089578c7124a3e/angular/angular-cli/issues/33108 |
| og:image:alt | Command build Description We are trying to implement Subresource Integrity checks while continuing to be able to track errors in our app reliably. Error tracking tools, such as Sentry, have started... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | IchordeDionysos |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width