Title: Follow-up to issue: SSR: Add a way to configure externalDependencies for the server bundle only · Issue #34262 · angular/angular-cli · GitHub
Open Graph Title: Follow-up to issue: SSR: Add a way to configure externalDependencies for the server bundle only · Issue #34262 · angular/angular-cli
X Title: Follow-up to issue: SSR: Add a way to configure externalDependencies for the server bundle only · Issue #34262 · angular/angular-cli
Description: Command build Description As title says, I'd like to follow-up on the unfortunately closed issue #26487, requesting to configure externalDependencies independently for server and browser bundle. Reading the mentioned issue, it has been c...
Open Graph Description: Command build Description As title says, I'd like to follow-up on the unfortunately closed issue #26487, requesting to configure externalDependencies independently for server and browser bundle. Re...
X Description: Command build Description As title says, I'd like to follow-up on the unfortunately closed issue #26487, requesting to configure externalDependencies independently for server and browser bundle...
Opengraph URL: https://github.com/angular/angular-cli/issues/34262
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Follow-up to issue: SSR: Add a way to configure externalDependencies for the server bundle only","articleBody":"### Command\n\nbuild\n\n### Description\n\nAs title says, I'd like to follow-up on the unfortunately closed issue https://github.com/angular/angular-cli/issues/26487, requesting to configure externalDependencies independently for server and browser bundle.\n\nReading the mentioned issue, it has been closed because no particular value has been seen in being able to configure externalDependencies independently. However I'd like to point to a realistic and important case where such an option will be crucial. \n\nRight now, we're still on using Webpack, which allows configuring externalDependencies explicitly for the server bundle, and that's the reason why it's not blocking us yet. But there's plans to eventually migrate to application-builder, however still a lot of obstacles ned to be solved, as like the mentioned lack of being able to define externalDependencies for server bundle only.\n\nOur case is, we're using DataDog `dd-trace` for monitoring our server app infrastructure. dd-trace is being injected on runtime and requires all node packages doing downstream requests being external as otherwise it cannot properly trace them. See https://docs.datadoghq.com/tracing/trace_collection/dd_libraries/nodejs/#bundling\n\nIn our particular scenario, this applies to `graphql` package. We had to externalize it, as otherwise we wouldn't get logs for all requests towards our GraphQL API on server-side. But on the client-side using the browser-bundle we do not want `graphql` package being external, as there's absolutely no reason in it.\n\nSo, our particular needs can be properly served by using Webpack builder but with the current options for application-builder this isn't possible.\n\nAs a workaround I tried to implement a custom Esbuild plugin, which should reset the external dependencies just for the browser build. But due to the Angular build architecture this only works for a prod build but not for a development build. So I eventually dropped this idea, which anyway doesn't seem clean.\n\nHence I'd highly appreciate if you could change your mind in considering separate externalDependencies configurations for server and browser build.\n\n### Describe the solution you'd like\n\nBeing able to configure externalDependencies separately for server and browser build.\n\n### Describe alternatives you've considered\n\n_No response_","author":{"url":"https://github.com/vz-tl","@type":"Person","name":"vz-tl"},"datePublished":"2026-10-06T11:26:43Z","url":"https://github.com/angular/angular-cli/issues/34262"}
| 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:ac1a32d4-1f85-e381-d82e-90b3f54c39e8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD84:11EACE:2F4B267:3F2EF17:6B01DE41 |
| html-safe-nonce | e1001470e8e9167123e114ee9a23bc032b53252ef689bbaec34d1a3250fb0732 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDg0OjExRUFDRToyRjRCMjY3OjNGMkVGMTc6NkIwMURFNDEiLCJ2aXNpdG9yX2lkIjoiMjUxMjU5MzcxMjkxMjEyOTYwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 05fc8e732438586333b07585238c0a51b1fbf4c8f8e7b0a6d599aed5168d3234 |
| hovercard-subject-tag | issue:5727575599 |
| 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/34262/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a1dbdd7b5c54b7728f4600b5bcc889c4720a64beb6d9f3870753bffc87f849e5/angular/angular-cli/issues/34262 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a1dbdd7b5c54b7728f4600b5bcc889c4720a64beb6d9f3870753bffc87f849e5/angular/angular-cli/issues/34262 |
| og:image:alt | Command build Description As title says, I'd like to follow-up on the unfortunately closed issue #26487, requesting to configure externalDependencies independently for server and browser bundle. Re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vz-tl |
| 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