You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bun-platform mode now provides the real globalThis.Bun namespace (#9599), and bare Bun resolves to it at runtime. The HIR diagnostic path still reports every bare use as an unknown identifier:
Warning: unknown identifier 'Bun' — assuming global; resolved by name on globalThis ...
Large Bun-target graphs can emit dozens of these false-positive warnings, obscuring actionable compatibility diagnostics.
Problem
Bun-platform mode now provides the real
globalThis.Bunnamespace (#9599), and bareBunresolves to it at runtime. The HIR diagnostic path still reports every bare use as an unknown identifier:Large Bun-target graphs can emit dozens of these false-positive warnings, obscuring actionable compatibility diagnostics.
Minimal repro
The compile should not warn that
Bunis unknown.Acceptance criteria
Bunis classified as a platform-provided global and emits no unknown-identifier warning.Bunshadows the platform global normally.typeof Bun, computed access, destructuring, and shadowing in both platform modes.This issue is diagnostic hygiene only; it does not add new Bun namespace members.