Can't I get ride off --bun flag, & being 100% bun?
#6823
-
|
I want to use bun runtime so I was suggested to use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
In most recent versions of Bun (1.0+), you can often omit the When you run a command like If your project is a standard TanStack Start or Vite-based project, simply running: bun devis usually "100% Bun" by default. When you still might need it: You can check if you are truly running in Bun by adding |
Beta Was this translation helpful? Give feedback.
In most recent versions of Bun (1.0+), you can often omit the
--bunflag.When you run a command like
bun devorbun run dev, Bun is already the primary runtime. The explicit--bunflag is specifically intended for scenarios where a script or tool explicitly calls thenodebinary, 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:
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
nodesubprocess, that is when the flag helps. Otherwise…