tsconfig.json bun:bundle Path Mapping
- Entity ID:
ent-20260420-b01a00000015 - Type:
concept - Scope:
shared - Status:
active - Aliases: bun:bundle type stub, tsconfig paths bun:bundle
Description
TypeScript compiler path mapping in tsconfig.json: "bun:bundle": ["./src/types/bun-bundle.d.ts"] which resolves the bundle import for type-checking only. It yields the compile-time feature() signature without providing a runtime implementation — runtime resolution is handled separately by the esbuild alias pointing to src/shims/bun-bundle.ts. Rebuild instruction explicitly forbids touching tsconfig — the type stub is correct for tsc.
Key claims
- tsconfig paths handles bun:bundle type-checking while esbuild handles runtime resolution
Relations
- tsconfig.json bun:bundle Path Mapping --[type_stubs_for]--> bun:bundle Runtime Shim