René's URL Explorer Experiment


Title: @angular/build: leaves esbuild service child alive after watch:false build · Issue #33201 · angular/angular-cli · GitHub

Open Graph Title: @angular/build: leaves esbuild service child alive after watch:false build · Issue #33201 · angular/angular-cli

X Title: @angular/build: leaves esbuild service child alive after watch:false build · Issue #33201 · 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 No response Description Symptom: After a one-shot ng build (no --watch) completes succ...

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 No response Description Symptom: After a one-s...

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 No response Description Symptom: After a one-s...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@angular/build: leaves esbuild service child alive after watch:false build","articleBody":"### Command\n\nbuild\n\n### Is this a regression?\n\n- [ ] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n_No response_\n\n### Description\n\n**Symptom**: After a one-shot ng build (no --watch) completes successfully, the Node process does not exit. `process._getActiveHandles()` shows a ChildProcess for the esbuild service\n```\nall services stopped\nhandles: [ 'WriteStream', 'WriteStream', 'ReadStream', 'ChildProcess' ]\nrequests: []\nchild: {\n  pid: 52715,\n  file: '/my/machine/\u003cproject\u003e/node_modules/.pnpm/@esbuild+linux-x64@0.27.3/node_modules/@esbuild/linux-x64/bin/esbuild',\n  args: [\n    '/my/machine/\u003cproject\u003e/node_modules/.pnpm/@esbuild+linux-x64@0.27.3/node_modules/@esbuild/linux-x64/bin/esbuild',\n    '--service=0.27.3',\n    '--ping'\n  ]\n}\n```\nThe root cause lays in @angular/build/src/builders/application/build-action.js — `runEsBuildBuildAction`:\n\n  - For `watch:false`, `BundlerContext.incremental` is `false`, so the build path uses one-shot `esbuild.build()` and never creates an `esbuild.context()`.\n  - `ExecutionResult.dispose()` → `BundlerContext.dispose()` only awaits `this.#esbuildContext?.dispose()`, which is `undefined` in this path. So nothing tears down esbuild's long-lived\n  service child.\n  - The builder never calls `esbuild.stop()` anywhere.\n  - The plugin teardown registered via `build.onDispose(...)` in compiler-plugin.js (`javascriptTransformer.close(), cacheStore?.close(), compilation.close?.()`) is fire-and-forget\n  (void ...) and scheduled by esbuild via `setTimeout(cb, 0)`, so it can race with the function returning.\n\nThe issue is not apparent in regular builds since the process is exited after the build loop marks `done: true` but builders that decorate over the Angular builder inherit the leakage. \n\n\n### Minimal Reproduction\n\nHere's how we use the internal builder programatically: https://github.com/native-federation/angular-adapter/blob/8bd8b58b7db8ae3cac5818c2d643077a8b3161ce/packages/angular/src/builders/build/builder.ts#L95\n\n### Exception or Error\n\n```text\n\n```\n\n### Your Environment\n\n```text\n\u003e ng version\n\n\n     _                      _                 ____ _     ___\n    / \\   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|\n   / △ \\ | '_ \\ / _` | | | | |/ _` | '__|   | |   | |    | |\n  / ___ \\| | | | (_| | |_| | | (_| | |      | |___| |___ | |\n /_/   \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_|       \\____|_____|___|\n                |___/\n    \n\nAngular CLI       : 21.2.10\nAngular           : 21.2.12\nNode.js           : 24.11.1\nPackage Manager   : pnpm 10.33.0\nOperating System  : linux x64\n\n┌───────────────────────────────┬───────────────────┬───────────────────┐\n│ Package                       │ Installed Version │ Requested Version │\n├───────────────────────────────┼───────────────────┼───────────────────┤\n│ @angular-devkit/build-angular │ 21.2.10           │ ^21.2.10          │\n│ @angular/build                │ 21.2.10           │ ^21.2.10          │\n│ @angular/cli                  │ 21.2.10           │ ^21.2.10          │\n│ @angular/common               │ 21.2.12           │ ^21.2.0           │\n│ @angular/compiler             │ 21.2.12           │ ^21.2.0           │\n│ @angular/compiler-cli         │ 21.2.12           │ ^21.2.0           │\n│ @angular/core                 │ 21.2.12           │ ^21.2.0           │\n│ @angular/forms                │ 21.2.12           │ ^21.2.0           │\n│ @angular/platform-browser     │ 21.2.12           │ ^21.2.0           │\n│ @angular/router               │ 21.2.12           │ ^21.2.0           │\n│ rxjs                          │ 7.8.2             │ ~7.8.0            │\n│ typescript                    │ 5.9.3             │ ~5.9.2            │\n│ vitest                        │ 4.1.5             │ ^4.0.8            │\n└───────────────────────────────┴───────────────────┴───────────────────┘\n```\n\n### Anything else relevant?\n\nThis is only happening when the buildAction is called programatically","author":{"url":"https://github.com/Aukevanoost","@type":"Person","name":"Aukevanoost"},"datePublished":"2026-05-14T06:54:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/33201/angular-cli/issues/33201"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:30d02261-9860-b8c9-a3a1-532c417135c6
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC850:385126:3873DF:5178A0:6A636AFA
html-safe-nonce6cad1bebd59dcd34d2b8d29a2e7074ec140de0754405fd2b5db59e6d908df534
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODUwOjM4NTEyNjozODczREY6NTE3OEEwOjZBNjM2QUZBIiwidmlzaXRvcl9pZCI6IjI5NTc0MjkxNzA4NzUwOTk4OTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac423d50d004068c1d4b04fd818f0177f5b92e2ccd509a39af5b818f7c2346a612
hovercard-subject-tagissue:4443888354
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/33201/issue_layout
twitter:imagehttps://opengraph.githubassets.com/791555e315c86897ebed2f065a6e62a843883a6aa7f6fb6f5166f0a37284ee78/angular/angular-cli/issues/33201
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/791555e315c86897ebed2f065a6e62a843883a6aa7f6fb6f5166f0a37284ee78/angular/angular-cli/issues/33201
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 No response Description Symptom: After a one-s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameAukevanoost
hostnamegithub.com
expected-hostnamegithub.com
Nonee7b5617850fbcd6d10fe2b7c56398444bccb5f3a58a4a18c6d363971295bcd03
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
releaseaa341b3f432dc63fa9633042725aec601722a352
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/33201#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F33201
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F33201
Sign up https://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/33201
Reloadhttps://github.com/angular/angular-cli/issues/33201
Reloadhttps://github.com/angular/angular-cli/issues/33201
Please reload this pagehttps://github.com/angular/angular-cli/issues/33201
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 269 https://github.com/angular/angular-cli/issues
Pull requests 32 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security and quality 5 https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security and quality https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
#33267https://github.com/angular/angular-cli/pull/33267
@angular/build: leaves esbuild service child alive after watch:false buildhttps://github.com/angular/angular-cli/issues/33201#top
#33267https://github.com/angular/angular-cli/pull/33267
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
gemini-triagedLabel noting that an issue has been triaged by geminihttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
https://github.com/Aukevanoost
Aukevanoosthttps://github.com/Aukevanoost
on May 14, 2026https://github.com/angular/angular-cli/issues/33201#issue-4443888354
https://github.com/native-federation/angular-adapter/blob/8bd8b58b7db8ae3cac5818c2d643077a8b3161ce/packages/angular/src/builders/build/builder.ts#L95https://github.com/native-federation/angular-adapter/blob/8bd8b58b7db8ae3cac5818c2d643077a8b3161ce/packages/angular/src/builders/build/builder.ts#L95
area: @angular/buildhttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22area%3A%20%40angular%2Fbuild%22
gemini-triagedLabel noting that an issue has been triaged by geminihttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22gemini-triaged%22
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.