bun:bundle Runtime Resolution Problem

Description

Architectural problem surfaced by the rebuild: the 'bun:bundle' module name is a build-time special that Bun's runtime does not natively resolve. Dev-mode execution therefore requires one of three workarounds: a bunfig.toml alias to src/shims/bun-bundle.ts, a Bun plugin registered via preload that intercepts /^bun:bundle$/ on resolve, or a pre-build transform that rewrites 'from bun:bundle' imports to the shim path.

Key claims

Relations

Sources

src-20260420-537906eb2c51