Skip to content
Discussion options

You must be logged in to vote

In most recent versions of Bun (1.0+), you can often omit the --bun flag.

When you run a command like bun dev or bun run dev, Bun is already the primary runtime. The explicit --bun flag is specifically intended for scenarios where a script or tool explicitly calls the node binary, but you want Bun to intercept that call and use its own Node.js compatibility layer instead.

If your project is a standard TanStack Start or Vite-based project, simply running:

bun dev

is usually "100% Bun" by default.

When you still might need it:
If you notice that some specific Node.js internal APIs are failing or if a dependency is explicitly spawning a node subprocess, that is when the flag helps. Otherwise…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sunny-unik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants