WhatBrokeToday
FAQ
Bun

Bun issue (Nov 24): Bun Build Macros Interfere with Defines on Linux

medium

Is it fixed? Not yet.

Ongoing since Nov 24, 00:55 UTC. First reported Nov 24, 00:55 UTC.

What happened

On Linux, running a macro at runtime within a process causes subsequent Bun.build calls in the same process to sometimes miss their define configurations or bleed them into the runtime macro.

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.

Official fix

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    Bun.build's macros sometimes miss its define after a runtime macro in the same process (Linux)

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Bun.build's macros sometimes miss its define after a runtime macro in the same process (Linux)(opens GitHub issue in a new tab)

    On Linux, a macro that ran at runtime in a process makes a later Bun.build in the same process sometimes run its macros without the build's define, and the build's define sometimes reaches the runtime macro instead. Reproduce m.ts: export function mode(): string { return process.env.NODE_ENV ?? "unset"; } entry.ts, built: import { mode } from "./m.ts" with { type: "macro" }; export const value = mode(); runtime-macro.ts, imported at runtime: import { mode } from "./m.ts" with { type: "macro"…

    by metonym 0upvotes 1comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Nov 24, 00:55 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.

When did the Bun issue start and end?

It started Nov 24, 00:55 UTC and is still ongoing (23 h 24 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.