WhatBrokeToday
FAQ
Bun

Bun issue (Nov 23): Bun Dev Server Copies Re-Export Binding Values Instead of Keeping Live

medium

Is it fixed? Not yet.

Ongoing since Nov 23, 00:08 UTC. First reported Nov 23, 00:08 UTC.

What happened

Bun's dev server incorrectly copies the value of re-exported let bindings from node_modules packages instead of keeping them live via getters, causing later assignments to be missed. Files outside of node_modules correctly use getters.

What caused it?

Bun's dev server writes re-exporting modules inside node_modules as static object properties with copied values rather than using getters like files outside node_modules.

Source: github.com

No verified workaround yet

None of the linked reports describe a mitigation. This page updates when one appears.

Outage timeline

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

    Dev server: a re-export inside node_modules copies the binding's value instead of keeping it live

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    Dev server: a re-export inside node_modules copies the binding's value instead of keeping it live(opens GitHub issue in a new tab)

    What happens When a package in node_modules re-exports a let binding (export { x, x as renamed } from "./state.js"), Bun's dev server (bun index.html, Bun.serve HTML imports) writes the re-exporting module as hmr.exports = { x: import_state.x, renamed: import_state.x, set: import_state.set }; The value is read once, when the module runs, so a later assignment in state.js is never seen. The same files outside node_modules get getters (get renamed() { return import_state.x; }) and stay live. bun…

    by metonym 0upvotes 1comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Nov 23, 00:08 UTC. The cause: Bun's dev server writes re-exporting modules inside node_modules as static object properties with copied values rather than using getters like files outside node_modules.

What is affected by the Bun issue?

Bun.

When did the Bun issue start and end?

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