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
{{ message }}
Repository navigation
compiler(bun): lower import.meta.require() through synchronous compiled-module dispatch #9742
Bun-target bundles with split require() calls emit import.meta.require("./chunk-….js"). The call is synchronous: it evaluates the selected chunk and returns its namespace immediately.
Perry currently treats require as an unknown import.meta member. Generic member lowering turns the callee into undefined, so the compiled program fails with TypeError: value is not a function; the module collector also does not discover that chunk.
This is a Bun bundle primitive, independent of any particular application.
Fixed by #9761, which landed on main via merge train #9798. The train was merged as its own branch, so the Fixes #9742 keyword in #9761 never fired — closing manually. Verified the fix is on main by patch-id (git cherry), not just by the PR being closed.
Activity
proggeramlug commentedon Sep 5, 2026
Fixed by #9761, which landed on
mainvia merge train #9798. The train was merged as its own branch, so theFixes #9742keyword in #9761 never fired — closing manually. Verified the fix is onmainby patch-id (git cherry), not just by the PR being closed.