Bun experimentalDecorators in tsconfig with extends is ignored
Is it fixed? Not yet.
Ongoing since Nov 11, 07:19 UTC. First reported Nov 11, 07:19 UTC.
What happened
In Bun, when a tsconfig file extends a base file that does not set experimentalDecorators, the setting is ignored even if specified in the child config, causing classes to compile with TC39 decorators instead of legacy decorators.
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 fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
experimentalDecorators in a tsconfig with extends is ignored when the base doesn't set it
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportexperimentalDecorators in a tsconfig with extends is ignored when the base doesn't set it(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4+38afee6c8 What platform is your computer? Darwin 25.6.0 arm64 arm What steps can reproduce the bug? experimentalDecorators: true in a tsconfig that extends another file is ignored when the base file doesn't set it. The class then compiles with TC39 decorators. mkdir repro && cd repro cat > a.ts <<'TS' function legacy(target: any, key?: any, desc?: any) { console.log("arguments:", arguments.length); } class A { @legacy x = 1; } new A(); TS echo '{…
by drakulavich 0upvotes 1comments
FAQ
What happened in the Bun issue?
In Bun, when a tsconfig file extends a base file that does not set experimentalDecorators, the setting is ignored even if specified in the child config, causing classes to compile with TC39 decorators instead of legacy decorators.
What is affected by the Bun issue?
Bun (versions: 1.4.4+38afee6c8).
When did the Bun issue start and end?
It started Nov 11, 07:19 UTC and is still ongoing (7 d 21 h 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.