Bun issue (Nov 24): Bun Bun.build Runs Plugins' onEnd Callbacks in Parallel Instead of Serial
Is it fixed? Not yet.
Ongoing since Nov 24, 15:22 UTC. First reported Nov 24, 15:22 UTC.
What happened
Bun.build executes plugins' onEnd callbacks in parallel rather than serially matching esbuild's behavior, leading to race conditions in plugin execution order. This affects developers utilizing multiple build plugins on Bun 1.4.6-canary.1+7624a7ea1 on Darwin arm64.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Outage timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
Bun.build: run plugins' onEnd callbacks in serial, as esbuild does
Source
Reports of this outage
1 report · 1 GitHubShow
- [1]GitHub First reportBun.build: run plugins' onEnd callbacks in serial, as esbuild does(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.6-canary.1+7624a7ea1 What platform is your computer? Darwin 25.6.0 arm64 arm What steps can reproduce the bug? // onend.ts, next to an e.js with console.log(1) const log: string[] = []; await Bun.build({ entrypoints: ["./e.js"], outdir: "out", plugins: [ { name: "a", setup(b) { b.onEnd(async () => { log.push("a start"); await Bun.sleep(20); log.push("a end"); }); } }, { name: "b", setup(b) { b.onEnd(async () => { log.push("b start"); }); } }, ], });…
by metonym 0upvotes 1comments
Bun issue FAQ
What happened in the Bun issue, and why?
Ongoing since Nov 24, 15:22 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.
What is affected by the Bun issue?
Bun (versions: 1.4.6-canary.1+7624a7ea1).
When did the Bun issue start and end?
It started Nov 24, 15:22 UTC and is still ongoing (14 h 23 min so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.