What happens when Bun runs a TypeScript file

· Flaviocopes · Sept. 5, 2026, 6:34 p.m.
Summary
This post explores the detailed process of running a TypeScript file with Bun, covering various technical aspects including command line interface dispatch, module resolution, transpilation to JavaScript, Node compatibility, and how these interact with the event loop.
AUTHOR
Sponsored
Zulip logo Zulip
Organized team chat for people who take work seriously. Topic-based threading keeps conversations focused.
Try Zulip
Become a sponsor →